note 52649 added to function.array-shift

From: Date: Sun, 08 May 2005 16:05:43 +0000
Subject: note 52649 added to function.array-shift
Groups: php.notes 
Request: Send a blank email to php-notes+get-89124@lists.php.net to get a copy of this message
cherche1pseudo at gmail dot com did show how to unshift all elements from array, here is simpler way: <?php unset($array); ?> And by the way, there is no such function as "unshift". Be careful when you read these comments in PHP.net, they can teach you make things much worser... ---- Manual Page -- http://www.php.net/manual/en/function.array-shift.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52649 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52649&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52649&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52649&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52649&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52649&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52649&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89124) next »