Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
parse_str(str_replace('/','&',$str), $output);
var_dump($output);
extract($output);
Keep in mind that dumping variables from an unknown source into the current context, you run the risk of running into substitution of current variables for left values, or, when using the EXTR_SKIP flag, implicit behavior. Ideally, use the array obtained from parsing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question