note 29619 deleted from function.parse-str by nlopess

From: Date: Sat, 13 Mar 2004 21:35:31 +0000
Subject: note 29619 deleted from function.parse-str by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66790@lists.php.net to get a copy of this message
Note Submitter: joe@no_spam_thx.misuseit.com ---- If you want to do much more manipulation of a query string you should probably first turn it into an array with parse_str(). Also, if you're working with xhtml and you want it to validate you must use & to separate any name-value pairs. This example takes a either a vaild or invalid xhtml query string and turns it into an array... $example_string = 'action=kick&item=me' $example_string = str_replace('&', '&', $example_string); parse_str($example_string, $query_array); print_r($query_array); // Outputs Array ( [action] => kick [item] => me )

« previous php.notes (#66790) next »