A WordPress-centric search engine for devs and theme authors



wp_parse_str ›

Since2.2.1
Deprecatedn/a
wp_parse_str ( $string, $array )
Parameters: (2)
  • (string) $string The string to be parsed.
    Required: Yes
  • (array) $array Variables will be stored in this array.
    Required: Yes
Defined at:
Codex:

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



Source

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

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