Edit report at https://bugs.php.net/bug.php?id=21379&edit=1

 ID:                 21379
 Updated by:         maar...@php.net
 Reported by:        c dot greenNOSP at Mits dot uq dot edu dot au
 Summary:            Add integer to pop and unshift
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   RH 7.3
 PHP Version:        4.3.0
 Block user comment: N
 Private report:     N

 New Comment:

array_slice() does what you want. :)


Previous Comments:
------------------------------------------------------------------------
[2003-01-02 22:10:03] c dot greenNOSP at Mits dot uq dot edu dot au

It would be nice if pop and unshift had an optional integer argument.  This 
would be useful for retreiving or removing the first or last n elements of an 
array.  

If the default is left as 1, then no current code will be affected, and the 
functions would be extended in an intuitive way.

Cheerio,

Cameron Green

------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=21379&edit=1

Reply via email to