Hello everyone,
Long time lurker...first time poster. Anyways, I'm pretty new to php and some of my skills aren't exactly super advanced. I've been beating my head against my monitor for a couple of hours, searching the web, forums, etc. and have yet to find an answer. Hopefully it hasn't been covered here so I won't look like an idiot.
Anyways...
I have two variables already defined.
$question = "this is question four,this is question five,this is question three,this is question one, this is question two";
$questionorder = "4,5,3,1,2";
I'm exploding $question and $questionorder into arrays and then trying to create a new variable that is an updated list of the questions in the order that are meant to be displayed.
I've been looking into using associative arrays for this but am completly lost.
Any advice any one here could offer would be greatly appreciated.🙂
Thanks a ton!