A WordPress-centric search engine for devs and theme authors



wp-includes/compat.php ›

Functions16
WordPress implementation for PHP functions either missing from older PHP versions or not included by default.


Function Short description
array_replace_recursivePHP-agnostic version of {@link array_replace_recursive()}.
hash_equalsTiming attack safe string comparison
hash_hmacCompat function to mimic hash_hmac().
is_countablePolyfill for is_countable() function added in PHP 7.3.
is_iterablePolyfill for is_iterable() function added in PHP 7.1.
json_decode-
json_encode-
json_last_error_msgRetrieves the error string of the last json_encode() or json_decode() call.
mb_strlenCompat function to mimic mb_strlen().
mb_substrCompat function to mimic mb_substr().
_-
_hash_hmacInternal compat function to mimic hash_hmac().
_json_decode_object_helper-
_mb_strlenInternal compat function to mimic mb_strlen().
_mb_substrInternal compat function to mimic mb_substr().
_wp_can_use_pcre_uReturns whether PCRE/u (PCRE_UTF8 modifier) is available for use.