Свойство | Тип | Описание | |
---|---|---|---|
$_adapters | Libraries::locate()-compatible path to adapters for this class. | ||
$_configurations | array | Contains adapter configurations for Multibyte adapters. |
Метод | Описание | |
---|---|---|
is ( string $string, array $options = [] ) : boolean | Checks if a given string is UTF-8 encoded and is valid UTF-8. | |
strlen ( string $string, array $options = [] ) : integer | Gets the string length. Multibyte enabled version of strlen(). | |
strpos ( string $haystack, string $needle, integer $offset, array $options = [] ) : integer | Finds the position of the _first_ occurrence of a string within a string. | |
strrpos ( string $haystack, string $needle, array $options = [] ) : integer | Finds the position of the _last_ occurrence of a string within a string. | |
substr ( string $string, integer $start, integer $length = null, array $options = [] ) : string | Returns the portion of string specified by the start and length parameters. |
public static strlen ( string $string, array $options = [] ) : integer | ||
$string | string | The string being measured for length. |
$options | array | Allows for selecting the adapter to use via the `name` options. Will use the `'default'` adapter by default. |
Результат | integer | The length of the string on success. |
public static strpos ( string $haystack, string $needle, integer $offset, array $options = [] ) : integer | ||
$haystack | string | The string being checked. |
$needle | string | The string to find in the haystack. |
$offset | integer | If specified, search will start this number of characters counted from the beginning of the string. The offset cannot be negative. |
$options | array | Allows for selecting the adapter to use via the `name` options. Will use the `'default'` adapter by default. |
Результат | integer | Returns the numeric position of the first occurrence of the needle in the haystack string. If needle is not found, it returns `false`. |
public static strrpos ( string $haystack, string $needle, array $options = [] ) : integer | ||
$haystack | string | The string being checked. |
$needle | string | The string to find in the haystack. |
$options | array | Allows for selecting the adapter to use via the `name` options. Will use the `'default'` adapter by default. |
Результат | integer | Returns the numeric position of the last occurrence of the needle in the haystack string. If needle is not found, it returns `false`. |
public static substr ( string $string, integer $start, integer $length = null, array $options = [] ) : string | ||
$string | string | The string to extract the substring from. |
$start | integer | Position of first character in string (offset). |
$length | integer | Maximum numbers of characters to use from string. |
$options | array | Allows for selecting the adapter to use via the `name` options. Will use the `'default'` adapter by default. |
Результат | string | The substring extracted from given string. |
protected static $_adapters |
protected static array $_configurations | ||
Результат | array |