Summery Summery
strlen() implementation that isn’t brittle to mbstring.func_overload
Syntax Syntax
Description Description
This version just used the default strlen()
Parameters Parameters
- $binary_string
-
(Required)
Return Return
(int)
Source Source
File: wp-includes/random_compat/byte_safe_strings.php
function RandomCompat_strlen($binary_string) { if (!is_string($binary_string)) { throw new TypeError( 'RandomCompat_strlen() expects a string' ); } return (int) strlen($binary_string); }