How do I restore an array from a string in http_build_query?

http_build_query accepts an array and returns a query string of type string

$arr = array("foo"=>"bar", "a"=>"b");
http_build_query($arr); // foo=bar&a=b

how do I restore foo=bar&a=b strings to an array? is there such a method in php?

Php
Mar.22,2021

read more documents


parse_str


encapsulate functions for processing

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3acf6-345f3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3acf6-345f3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?