WordPress at a glance
function is not described

Services_JSON::substr8() public WP 1.0

Deprecated in from version 5.3.0. It is no longer supported and can be removed in future releases. Use PHP native JSON extension instead.

Returns part of a string, interpreting $start and $length as number of bytes.

It's a method of the class: Services_JSON{}

No Hooks.

Return

Int. length

Usage

$Services_JSON = new Services_JSON();
$Services_JSON->substr8( $string, $start, $length );
(string) (required)
start(int) (required)
length(int) (required)

Changelog

Deprecated Since 5.3.0 Use the PHP native JSON extension instead.

Code of Services_JSON::substr8() WP 5.5.1

<?php
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 );
}