wp_parse_str

Definition:
function wp_parse_str( $string, &$array ) {}

Parses a string into variables to be stored in an array.
Uses parse_str() and stripslashes if magic_quotes_gpc is on.

Parameters

  • string $string: The string to be parsed.
  • array $array: Variables will be stored in this array.
  • &$array

Defined filters

  • wp_parse_str
    apply_filters( 'wp_parse_str', $array )

Source code

function wp_parse_str( $string, &$array ) {

	parse_str( $string, $array );

	if ( get_magic_quotes_gpc() )

		$array = stripslashes_deep( $array );

	$array = apply_filters( 'wp_parse_str', $array );

}

3977

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: