PHP function to build query string from array

Viewed 169780

I'm looking for the name of the PHP function to build a query string from an array of key value pairs. Please note, I am looking for the built in PHP function to do this, not a homebrew one (that's all a google search seems to return). There is one, I just can't remember its name or find it on php.net. IIRC its name isn't that intuitive.

4 Answers

Implode will combine an array into a string for you, but to make an SQL query out a kay/value pair you'll have to write your own function.

Related