package Default
inherited_from \Zend\Filter\AbstractFilter

 Methods

Sets filter options

__construct(string|array|\Traversable $charlistOrOptions = null

Parameters

$charlistOrOptions

stringarray\Traversable

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to \filter()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Defined by Zend\Filter\FilterInterface

filter(string $value) : string

Returns the string $value with characters stripped from the beginning and end

Parameters

$value

string

Returns

string

Returns the charList option

getCharList() : string | null

Returns

stringnull

Retrieve options representing object state

getOptions() : array
Inherited

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : boolean
InheritedStatic
deprecated Since 2.1.0

Returns

boolean

Sets the charList option

setCharList(string $charList) : \Zend\Filter\StringTrim
fluent This method is part of a fluent interface and will return the same instance

Parameters

$charList

string

Returns

\Zend\Filter\StringTrimProvides a fluent interface

setOptions()

setOptions(array|\Traversable $options) : \Zend\Filter\StringTrim
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\StringTrim

isOptions()

isOptions(mixed $options) : boolean
InheritedStatic

Parameters

$options

mixed

Returns

boolean

Unicode aware trim method Fixes a PHP problem

unicodeTrim(string $value, string $charlist = '\\\\s') : string

Parameters

$value

string

$charlist

string

Returns

string

 Properties

 

Filter options

$options : array

Default

array('charlist' => null)
inherited_from \Zend\Filter\AbstractFilter::options
 

Filter options

$options : array

Default

array()