Services_JSON::substr8()
Устарела с версии 5.3.0. Больше не поддерживается и может быть удалена. Используйте
PHP native JSON extension
.Returns part of a string, interpreting $start and $length as number of bytes.
Метод класса: Services_JSON{}
Хуков нет.
Возвращает
Int
. length
Использование
$Services_JSON = new Services_JSON(); $Services_JSON->substr8( $string, $start, $length );
- $string (обязательный)
- -
- $start (обязательный)
- -
- $length **
- -
По умолчанию: false
Список изменений
Устарела с 5.3.0 | Use the PHP native JSON extension instead. |
Код Services_JSON::substr8() Services JSON::substr8 WP 6.5.2
function substr8( $string, $start, $length=false ) { _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' ); if ( $length === false ) { $length = $this->strlen8( $string ) - $start; } if ( $this->_mb_substr ) { return mb_substr( $string, $start, $length, "8bit" ); } return substr( $string, $start, $length ); }