json_decode( string $string, bool $assoc_array = false )


Description Description


Parameters Parameters

$string

(string) (Required)

$assoc_array

(bool) (Optional)

Default value: false


Top ↑

Return Return

(object|array)


Top ↑

Source Source

File: wp-includes/compat.php

	 * I.e. when PHP 7.4.0 becomes the minimum requirement, this polyfill
	 * can be safely removed.
	 *
	 * @since 3.9.2
	 *
	 * @param string $a Expected string.
	 * @param string $b Actual, user supplied, string.
	 * @return bool Whether strings are equal.
	 */
	function hash_equals( $a, $b ) {
		$a_length = strlen( $a );
		if ( $a_length !== strlen( $b ) ) {
			return false;
		}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.