I'm trying to write AJAX code that will pass all the valid inputs to a PHP page. Of course I'm trying to make the code re-usable. So substring functions are exactly what I'm looking for. I was told that "preg_match" might work. So right now, I'm wondering what the correct regular expression would be.
I was able to answer my own question. I used preg_match_all() to create an array containing all the keys passed in the array.
I used a regular expression to find all the strings between a "&" and "=" after the "?".