note 75760 deleted from function.implode by hholzgra

From: Date: Thu, 02 Aug 2012 13:18:26 +0000
Subject: note 75760 deleted from function.implode by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189741@lists.php.net to get a copy of this message
Note Submitter: TheMadBomberWhatBombsAtMidnight ---- in response to Brian, building a POST/GET string from an assoc array is easily done with the builtin http_build_query...as the example from its doc page shows: <?php $data = array('foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk', 'php'=>'hypertext processor'); echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor ?> of course, the builtin function also urlencodes the string it returns, which Brian's function did not.

« previous php.notes (#189741) next »