Zend\Stdlib\StringWrapper\StringWrapperInterface
Synopsis
interface StringWrapperInterface
{
- // methods
- public static void isSupported()
- public static array getSupportedEncodings()
- public StringWrapperInterface setEncoding()
- public string getEncoding()
- public string|null getConvertEncoding()
- public int|false strlen()
- public string|false substr()
- public int|false strpos()
- public string|false convert()
- public string wordWrap()
- public string strPad()
Methods
public
- convert() — Convert a string from defined encoding to the defined convert encoding
- getConvertEncoding() — Get the defined character encoding to convert to (upper case)
- getEncoding() — Get the defined character encoding to work with (upper case)
- getSupportedEncodings() — Get a list of supported character encodings
- isSupported() — Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported.
- setEncoding() — Set character encoding working with and convert to
- strPad() — Pad a string to a certain length with another string
- strlen() — Returns the length of the given string
- strpos() — Find the position of the first occurrence of a substring in a string
- substr() — Returns the portion of string specified by the start and length parameters
- wordWrap() — Wraps a string to a given number of characters