note 89565 added to function.parse-str

From: Date: Fri, 13 Mar 2009 19:08:54 +0000
Subject: note 89565 added to function.parse-str
Groups: php.notes 
Request: Send a blank email to php-notes+get-151847@lists.php.net to get a copy of this message
Also, an FYI but you cannot define arr when you call the function. I.E <?php $string="Tom=You&Zach=Me"; parse_str($string,$array); print_r($array); // Undefined variable $array on line 2!!!! ?> However, if you define the array before hand, it works. <?php $string="Tom=You&Zach=Me"; $array=array(); parse_str($string,$array); print_r($array); /* Array ( [Tom] => You [Zach] => Me ) */ ?> ---- Server IP: 209.41.74.194 Probable Submitter: 69.41.14.130 ---- Manual Page -- http://www.php.net/manual/en/function.parse-str.php Edit -- https://master.php.net/note/edit/89565 Del: integrated -- https://master.php.net/note/delete/89565/integrated Del: useless -- https://master.php.net/note/delete/89565/useless Del: bad code -- https://master.php.net/note/delete/89565/bad+code Del: spam -- https://master.php.net/note/delete/89565/spam Del: non-english -- https://master.php.net/note/delete/89565/non-english Del: in docs -- https://master.php.net/note/delete/89565/in+docs Del: other reasons-- https://master.php.net/note/delete/89565 Reject -- https://master.php.net/note/reject/89565 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151847) next »