Given URL like below
www.example.com?1+1
How am I supposed to parse the data and do the math?
If it was something like
www.example.com?a=1&op=+&b=1
Then I can just do $_GET[“variable_name”].
But what can I do with the former? What is the best way to parse such query?
I searched for a solution but cannot seem to find something relevant with my current knowledge. I tried looking at $_SERVER but I don't think this helps.