parse_str

parse_str -- Parses the string into variables

Description

void parse_str ( string str [, array arr])

הערה :

דוגמה 1 .

 
$str

 
=

 
"

 
first=value

 
second[]=this+works

 
second[]=another"

 
;

 
parse_str($str)

 
;

 
echo

 
$first

 
;

 
/

 
*

 
prints

 
"value

 
"

 
*

 
/

 
echo

 
$second[0]

 
;

 
/

 
*

 
prints

 
"this

 
works

 
"

 
*

 
/

 
echo

 
$second[1]

 
;

 
/

 
*

 
prints

 
"another

 
"

 
*

 
/





See also set_magic_quotes_runtime( ) and urldecode( ) .