category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Sets filter options

__construct(string|array|\Zend_Config $options = null) : void

Parameters

$options

stringarray\Zend_Config

Defined by Zend_Filter_Interface

filter(string $value) : string

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

inherited_from \Zend_Filter_Interface::filter()

Parameters

$value

string

Returns

string

Returns the charList option

getCharList() : string | null

Returns

stringnull

Sets the charList option

setCharList(string|null $charList) : \Zend_Filter_StringTrim

Parameters

$charList

stringnull

Returns

\Zend_Filter_StringTrimProvides a fluent interface

Unicode aware trim method Fixes a PHP problem

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

Parameters

$value

string

$charlist

string

Returns

string

 Properties

 

List of characters provided to the trim() function

$_charList : string | null

Default

If this is null, then trim() is called with no specific character list, and its default behavior will be invoked, trimming whitespace.