From:             [EMAIL PROTECTED]
Operating system: RH 7.3
PHP version:      4.3.0
PHP Bug Type:     Feature/Change Request
Bug description:  Add integer to pop and unshift

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 bug report at http://bugs.php.net/?id=21379&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21379&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21379&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21379&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21379&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21379&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21379&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21379&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21379&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21379&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21379&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21379&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21379&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21379&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21379&r=gnused

Reply via email to