Re: array_shift and php 4.0.4

From: Date: Thu, 10 Jan 2002 10:54:49 +0000
Subject: Re: array_shift and php 4.0.4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80008@lists.php.net to get a copy of this message
Thats my biggest concern now, performance with whatever alternatives that can be dreamed up... Anyway, its 6 in the morning, time for sleep. Maybe Ill dream up something else.... bvr@xs4all.nl wrote:
You are right, I should've known (used it before) .. Ofcourse you could do an array_reverse() before and after, don't know about the performance impact of that however. bvr.
array_pop() and array_shift are *different* :) array_pop() takes an element off the END of the array. array_shift() takes an element off the START of the array.


« previous php.general (#80008) next »