Class Quform_Filter_Trim
-
Quform_Filter_Abstract
implements
Quform_Filter_Interface
-
Quform_Filter_Trim
Copyright:
Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Filter/Trim.php
Methods summary
public
string
|
#
filter( string $value )
Trims whitespace from the beginning and end of the given value
Trims whitespace from the beginning and end of the given value
If the value provided is not a string, the value will remain unfiltered
Parameters
- $value
- The value to filter
Returns
string The filtered value
|
public static
array
|
#
getDefaultConfig( string|null $key = null )
Get the default config for this filter
Get the default config for this filter
Parameters
- $key
- Get the config by key, if omitted the full config is returned
Returns
array
|