note 113061 added to function.array-shift

From: Date: Fri, 23 Aug 2013 17:27:23 +0000
Subject: note 113061 added to function.array-shift
Groups: php.notes 
Request: Send a blank email to php-notes+get-196063@lists.php.net to get a copy of this message
Assignment in line, does not remove the element. $first = array_shift( $arr = array( 0 => '1st', 2 => '2nd', 3 => '3rd') ); print_r( $first ); print_r( $arr ); Output: 1st Array ( [0] => 1st [2] => 2nd [3] => 3rd ) ---- Server IP: 69.147.83.199 Probable Submitter: 200.189.118.162 ---- Manual Page -- http://php.net/manual/en/function.array-shift.php Edit -- https://master.php.net/note/edit/113061 Del: integrated -- https://master.php.net/note/delete/113061/integrated Del: useless -- https://master.php.net/note/delete/113061/useless Del: bad code -- https://master.php.net/note/delete/113061/bad+code Del: spam -- https://master.php.net/note/delete/113061/spam Del: non-english -- https://master.php.net/note/delete/113061/non-english Del: in docs -- https://master.php.net/note/delete/113061/in+docs Del: other reasons-- https://master.php.net/note/delete/113061 Reject -- https://master.php.net/note/reject/113061 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196063) next »