I have an url stored in a variable such as:
$url = \'example.com?a=20&i=10\'
How do I get values stored in variable a and vari
a
You could use parse_url and parse_str:
Demo