Services_JSON::substr8
Deprecated since 5.3.0. It is no longer supported and may be removed in future releases. Use
PHP native JSON extension
instead.Returns part of a string, interpreting $start and $length as number of bytes.
Method of the class: Services_JSON{}
No Hooks.
Returns
Int
. length
Usage
$Services_JSON = new Services_JSON(); $Services_JSON->substr8( $string, $start, $length );
- $string(required)
- .
- $start(required)
- .
- $length
- .
Default: false
Changelog
Deprecated since 5.3.0 | Use the PHP native JSON extension instead. |
Services_JSON::substr8() Services JSON::substr8 code WP 6.8.1
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 ); }