SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the PHP string function parse_str() followed by foreach loop.
parse_str()
foreach
$str="pg_id=2&parent_id=2&document&video"; parse_str($str,$my_arr); foreach($my_arr as $key=>$value){ echo "$key => $value<br>"; } print_r($my_arr);