Bug #9558 Updated: array hanling

From: Date: Sun, 17 Feb 2002 05:00:01 +0000
Subject: Bug #9558 Updated: array hanling
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-451@lists.php.net to get a copy of this message
ID: 9558 Updated by: php-bugs@lists.php.net Reported By: vgo@nrd.lt -Status: Feedback +Status: No Feedback Bug Type: Feature/Change Request Operating System: All OS PHP Version: 4.0.4pl1 New Comment: No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-01-06 13:22:10] jan@php.net what about unlink($array['key']); $first=$array[0]; and $last=$array[count($array)-1]. ? ------------------------------------------------------------------------ [2001-03-05 06:32:06] vgo@nrd.lt There are no normal delete from array (by the key) there are no possibility to get last, first element without altering the array itself (or to examine the element), in general in PHP the array is the list replacement (2 in 1)(for ex. in C++ we have to separate types/classes: array and the list) but there are no list functionality. If this will cause performance loses then new type creation sugested. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9558&edit=1

« previous php.bugs (#451) next »