note 91661 added to function.parse-str

From: Date: Mon, 22 Jun 2009 08:53:10 +0000
Subject: note 91661 added to function.parse-str
Groups: php.notes 
Request: Send a blank email to php-notes+get-157210@lists.php.net to get a copy of this message
Hi, I discovered that <?php $query = 'foo.bar=stuff'; // foo (dot) bar parse_str( $query , $output); print_r( $output ); ?> will output (underscore) Array ( [foo_bar] => stuff ) and not as expected (dot) Array ( [foo.bar] => stuff ) Query part of a requested URI is parsed the same. So never send parameters with a dot in their names Hope it will save you time, bye julien ---- Server IP: 89.31.146.176 Probable Submitter: 86.72.152.18 ---- Manual Page -- http://www.php.net/manual/en/function.parse-str.php Edit -- https://master.php.net/note/edit/91661 Del: integrated -- https://master.php.net/note/delete/91661/integrated Del: useless -- https://master.php.net/note/delete/91661/useless Del: bad code -- https://master.php.net/note/delete/91661/bad+code Del: spam -- https://master.php.net/note/delete/91661/spam Del: non-english -- https://master.php.net/note/delete/91661/non-english Del: in docs -- https://master.php.net/note/delete/91661/in+docs Del: other reasons-- https://master.php.net/note/delete/91661 Reject -- https://master.php.net/note/reject/91661 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157210) next »