ID: 9558
Updated by: jan
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: All OS
PHP Version: 4.0.4pl1
New Comment:

what about unlink($array['key']); $first=$array[0]; and
$last=$array[count($array)-1]. ?

Previous Comments:
------------------------------------------------------------------------

[2001-03-05 06:32:06] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to