0

I have string like "name1=firstValue&name2=secondValue&name3=thirdValue" how to convert the string to associative array.

  • 1
    Take a look at [parse_str](https://www.php.net/manual/en/function.parse-str.php) – Umair Khan Jul 31 '20 at 11:23
  • Wouldn't `$_GET` give you this information? I'm guessing those are arguments to your URL? – Qirel Jul 31 '20 at 11:23
  • I believe the answer you are looking for is here: [How to get parameters from a URL string](https://stackoverflow.com/questions/11480763/how-to-get-parameters-from-a-url-string) – Zenithies Jul 31 '20 at 11:25

0 Answers0