Bug #17565: optional ORDER parameter for range()

From: Date: Sun, 02 Jun 2002 09:52:40 +0000
Subject: Bug #17565: optional ORDER parameter for range()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9140@lists.php.net to get a copy of this message
From: bigredlinux@yahoo.com Operating system: Linux PHP version: 4.2.1 PHP Bug Type: Feature/Change Request Bug description: optional ORDER parameter for range() The range() function has the ability to generate a range from one number (or character) to another. It states in the documentation that if the first number (character) is greater than the second, it creates a decreasing range. However, the problem is, sometimes you don't want it to switch range order, so it would be nice to have a third parameter which states the direction or states whether you want it to auto flip. Hence, if I did range(9, 0, ASC) it would generate an empty array... or prehaps I could do range(9, 0, false) for not autoflipping. -- Edit bug report at http://bugs.php.net/?id=17565&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17565&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17565&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17565&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17565&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17565&r=support Expected behavior: http://bugs.php.net/fix.php?id=17565&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17565&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17565&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17565&r=globals

« previous php.bugs (#9140) next »