How can I turn a string below into an array?
pg_id=2&parent_id=2&document&video
This is the
There are several possible methods, but for you, there is already a builtin parse_str function
$array = array(); parse_str($string, $array); var_dump($array);