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

February 12, 2011 


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