How can I turn a string below into an array?
pg_id=2&parent_id=2&document&video
This is the array I am looking for,
array(
'pg_id' => 2,
'parent_id' => 2,
'document' => ,
'video' =>
)
|
You want the
|
|||
|
Using
|
|||
|
There are several possible methods, but for you, there is already a builtin function
|
||||
|
Use http://us1.php.net/parse_str Attention, it's:
not
|
||||
|
You can simply use
|
|||||
|