How can I turn a string below into an array?
pg_id=2&parent_id=2&document&video
This is the
Using parse_str().
$str = 'pg_id=2&parent_id=2&document&video'; parse_str($str, $arr); print_r($arr);