Fully Qualified Name: | Zend\Stdlib\StringWrapper\AbstractStringWrapper |
Implements: | StringWrapperInterface |
Name | Description | Defined By |
---|---|---|
convert() | Convert a string from defined character encoding to the defined convert encoding | AbstractStringWrapper |
getConvertEncoding() | Get the defined character encoding to convert to | AbstractStringWrapper |
getEncoding() | Get the defined character encoding to work with | AbstractStringWrapper |
isSupported() | Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported. | AbstractStringWrapper |
setEncoding() | Set character encoding working with and convert to | AbstractStringWrapper |
strPad() | Pad a string to a certain length with another string | AbstractStringWrapper |
wordWrap() | Wraps a string to a given number of characters | AbstractStringWrapper |
Convert a string from defined character encoding to the defined convert encoding
Parameter Name | Type | Description |
---|---|---|
$str | string | |
$reverse | bool |
Returns: string|bool
Get the defined character encoding to convert to
Returns: string|null
Get the defined character encoding to work with
Returns: string
Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported.
Parameter Name | Type | Description |
---|---|---|
$encoding | string | |
$convertEncoding | string|null |
Returns: bool
Set character encoding working with and convert to
Parameter Name | Type | Description |
---|---|---|
$encoding | string | The |
$convertEncoding | string|null | The |
Returns: \StringWrapperInterface
Pad a string to a certain length with another string
Parameter Name | Type | Description |
---|---|---|
$input | string | |
$padLength | int | |
$padString | string | |
$padType | int |
Returns: string
Wraps a string to a given number of characters
Parameter Name | Type | Description |
---|---|---|
$string | string | |
$width | int | |
$break | string | |
$cut | bool |
Returns: string|bool