Deprecated Deprecated
This method has been deprecated. Use the PHP native JSON extension instead.
Summery Summery
Calculates length of string in bytes
Syntax Syntax
Parameters Parameters
-
(Required)
Return Return
(integer) length
Source Source
File: wp-includes/class-json.php
function strlen8( $str ) { _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' ); if ( $this->_mb_strlen ) { return mb_strlen( $str, "8bit" ); } return strlen( $str ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |