note 70180 added to function.urldecode

From: Date: Thu, 05 Oct 2006 22:56:40 +0000
Subject: note 70180 added to function.urldecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-118103@lists.php.net to get a copy of this message
The example provided is very poorly written (in my opinion). Here is a rewritten example that does the same thing but runs cleaner. <?php $a = explode('&', $QUERY_STRING); foreach($a as $key => $a) { $b = split('=', $a); echo 'Value for parameter '.htmlspecialchars(urldecode($b[0])).' is '.htmlspecialchars(urldecode($b[1]))."<br />\n"; } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 64.175.36.67 ---- Manual Page -- http://www.php.net/manual/en/function.urldecode.php Edit -- https://master.php.net/note/edit/70180 Del: integrated -- https://master.php.net/note/delete/70180/integrated Del: useless -- https://master.php.net/note/delete/70180/useless Del: bad code -- https://master.php.net/note/delete/70180/bad+code Del: spam -- https://master.php.net/note/delete/70180/spam Del: non-english -- https://master.php.net/note/delete/70180/non-english Del: in docs -- https://master.php.net/note/delete/70180/in+docs Del: other reasons-- https://master.php.net/note/delete/70180 Reject -- https://master.php.net/note/reject/70180 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118103) next »