note 27244 added to function.array-shift

From: Date: Thu, 28 Nov 2002 20:21:22 +0000
Subject: note 27244 added to function.array-shift
Groups: php.notes 
Request: Send a blank email to php-notes+get-40081@lists.php.net to get a copy of this message
This function doesn't return 0-values, it even stops in the example below: $fiveElems = array(10, 5, 0, 5, 10); while ($elem = @array_shift($fiveElems)) echo $elem . " "; would return "10 5 ". See http://kylie.hemmet.chalmers.se/php-array-shift-bug.php -- http://www.php.net/manual/en/function.array-shift.php http://master.php.net/manage/user-notes.php?action=edit+27244 http://master.php.net/manage/user-notes.php?action=delete+27244 http://master.php.net/manage/user-notes.php?action=reject+27244

« previous php.notes (#40081) next »