wordpress / latest / functions / wp_parse_str.html

wp_parse_str( string $string, array $array )

Parses a string into variables to be stored in an array.

Parameters

$string string Required
The string to be parsed.
$array array Required
Variables will be stored in this array.

Source

File: wp-includes/formatting.php. View all references

function wp_parse_str( $string, &$array ) {
	parse_str( (string) $string, $array );

	/**
	 * Filters the array of variables derived from a parsed string.
	 *
	 * @since 2.2.1
	 *
	 * @param array $array The array populated with variables.
	 */
	$array = apply_filters( 'wp_parse_str', $array );
}

Hooks

Uses

Uses Description

Used By

Used By Description

Changelog

Version Description
2.2.1 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_parse_str