#23117 [NEW]: Python-style array subsets

From: Date: Tue, 08 Apr 2003 21:08:43 +0000
Subject: #23117 [NEW]: Python-style array subsets
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37373@lists.php.net to get a copy of this message
From: eblount at implode dot com Operating system: All PHP version: 5CVS-2003-04-08 (dev) PHP Bug Type: Feature/Change Request Bug description: Python-style array subsets Hi, I would like to request Python-style array subsets, where the code would resemble the following: $subArray = $bigArray[10:20]; // $subArray contains elements 10 through 20 of $bigArray It could also be useful in strings: $myString = "Hello World"; $subString = $myString[3:8]; // $subString equals "lo Wor" I think this could be done without breaking backwards compatability, and I think it would increase productivity. Thanks, Eric Blount eblount@implode.com -- Edit bug report at http://bugs.php.net/?id=23117&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23117&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23117&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23117&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23117&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23117&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23117&r=support Expected behavior: http://bugs.php.net/fix.php?id=23117&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23117&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23117&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23117&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23117&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23117&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23117&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23117&r=gnused

« previous php.bugs (#37373) next »