Say for instance I have ...
$var1 = \"ABC\" $var2 = 123
and under certain conditions I want to sw
Yes I know there are lots of solutions available, but here is another one. You can use parse_str() function too. Reference W3Schools PHP parse_str() function.
parse_str()
DEMO