test.php?t=xxx,y=sss
This is how the user inputs data to my script.
How can I get this data as an array inside test.php, and remove the commas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
will get you what you want from the url you gave, however @Tudor Constantin has the best solution.
Edit
This will loop through all however many fields you have. They will finish up in $result in the correct order.
then var_dump $result gives this result
Edit 2
Or you could try this:-
Say URL is “test.php?t=xxx,y=sss,z=ttt,a=uuu”
Then var_dump($result); will give you:-