I am trying to create a script that will get all keys from the url (url/?green&red&blue). I know I can use the $_GET array for that, but I don’t fully understand how to use it.
What I want is a for loop that gets all values in order and then does something with it, for example print it.
I’m stuck here right now so if anyone can help me further it will be much appreciated!
You could use something like:
remember that you should sanitize your user input, so do not use the code in a production environment.