note 71675 added to function.implode

From: Date: Mon, 11 Dec 2006 16:32:05 +0000
Subject: note 71675 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-120503@lists.php.net to get a copy of this message
The implode() function does not work as advertised/expected when used on the $_COOKIE array. You'd expect this: code: echo implode("&", $_COOKIE); prints: name1=value1&name2=value2&... But instead, the result is this: code: echo implode("&", $_COOKIE); prints: value1&value2&... In other words, it's completely useless, since a bunch of cookie values are meaningless without their names. ---- Server IP: 216.194.113.175 Probable Submitter: 24.229.153.14 ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- https://master.php.net/note/edit/71675 Del: integrated -- https://master.php.net/note/delete/71675/integrated Del: useless -- https://master.php.net/note/delete/71675/useless Del: bad code -- https://master.php.net/note/delete/71675/bad+code Del: spam -- https://master.php.net/note/delete/71675/spam Del: non-english -- https://master.php.net/note/delete/71675/non-english Del: in docs -- https://master.php.net/note/delete/71675/in+docs Del: other reasons-- https://master.php.net/note/delete/71675 Reject -- https://master.php.net/note/reject/71675 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120503) next »