PHP : simple string to array
问题 I have strings like var=test;path=test.html I want to convert these kind of strings like the array printed below : Array { var => test path => test.html, } I tried to use PHP's explode function for this task, but this is converting the string to associative array, and then i decided to convert that associate array to the one shown above. But my own code isn't what i'm looking for, 'cause it contain 2 times PHP's explode function and some foreach loops , thus my own code will not stand in the