note 110563 added to function.list

From: Date: Wed, 07 Nov 2012 15:00:06 +0000
Subject: note 110563 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-191793@lists.php.net to get a copy of this message
The example states the following: <?php // list() doesn't work with strings list($bar) = "abcde"; var_dump($bar); // output: NULL ?> If the string is in a variable however, it seems using list() will treat the string as an array: <?php $string = "abcde"; list($foo) = $string; var_dump($foo); // output: string(1) "a" ?> ---- Server IP: 62.2.182.223 Probable Submitter: 84.72.22.44 ---- Manual Page -- http://www.php.net/manual/en/function.list.php Edit -- https://master.php.net/note/edit/110563 Del: integrated -- https://master.php.net/note/delete/110563/integrated Del: useless -- https://master.php.net/note/delete/110563/useless Del: bad code -- https://master.php.net/note/delete/110563/bad+code Del: spam -- https://master.php.net/note/delete/110563/spam Del: non-english -- https://master.php.net/note/delete/110563/non-english Del: in docs -- https://master.php.net/note/delete/110563/in+docs Del: other reasons-- https://master.php.net/note/delete/110563 Reject -- https://master.php.net/note/reject/110563 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191793) next »