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

Menu