1863. Function

1863.1. Zend\Stdlib\StringWrapper\isSupported

ZendStdlibStringWrapperisSupported()

Check if the given character encoding is supported by this wrapper and the character encoding to convert to is also supported.

Parameters:
  • string
  • string|null

1864. Function

1864.1. Zend\Stdlib\StringWrapper\getSupportedEncodings

ZendStdlibStringWrappergetSupportedEncodings()

Get a list of supported character encodings

Return type:string[]

1865. Function

1865.1. Zend\Stdlib\StringWrapper\setEncoding

ZendStdlibStringWrappersetEncoding()

Set character encoding working with and convert to

Parameters:
  • string – The character encoding to work with
  • string|null – The character encoding to convert to
Return type:

StringWrapperInterface

1866. Function

1866.1. Zend\Stdlib\StringWrapper\getEncoding

ZendStdlibStringWrappergetEncoding()

Get the defined character encoding to work with (upper case)

Return type:string

1867. Function

1867.1. Zend\Stdlib\StringWrapper\getConvertEncoding

ZendStdlibStringWrappergetConvertEncoding()

Get the defined character encoding to convert to (upper case)

Return type:string|null

1868. Function

1868.1. Zend\Stdlib\StringWrapper\strlen

ZendStdlibStringWrapperstrlen()

Returns the length of the given string

Parameters:string
Return type:int|false

1869. Function

1869.1. Zend\Stdlib\StringWrapper\substr

ZendStdlibStringWrappersubstr()

Returns the portion of string specified by the start and length parameters

Parameters:
  • string
  • int
  • int|null
  • string
Return type:

string|false

1870. Function

1870.1. Zend\Stdlib\StringWrapper\strpos

ZendStdlibStringWrapperstrpos()

Find the position of the first occurrence of a substring in a string

Parameters:
  • string
  • string
  • int
  • string
Return type:

int|false

1871. Function

1871.1. Zend\Stdlib\StringWrapper\convert

ZendStdlibStringWrapperconvert()

Convert a string from defined encoding to the defined convert encoding

Parameters:
  • string
  • boolean
Return type:

string|false

1872. Function

1872.1. Zend\Stdlib\StringWrapper\wordWrap

ZendStdlibStringWrapperwordWrap()

Wraps a string to a given number of characters

Parameters:
  • string
  • integer
  • string
  • boolean
Return type:

string

1873. Function

1873.1. Zend\Stdlib\StringWrapper\strPad

ZendStdlibStringWrapperstrPad()

Pad a string to a certain length with another string

Parameters:
  • string
  • integer
  • string
  • integer
Return type:

string