Possible duplicate:
Analysis request string to array
What is the fastest method to parse a string of url parameters into an array of available variables?
$current_param = 'name=Peter&car=Volvo&pizza=Diavola&....'; //results in a nice array that I can pass: $result = array ( 'name' => 'Peter', 'car' => 'Volvo', 'pizza' => 'Diavola' )
I tested REGEXP, but it takes too long. My script should sometimes parse about 10,000 + url: - (
KISS - Keep It Simple, Stupid
source share