note 78922 deleted from function.array by felipe

From: Date: Sun, 16 Dec 2007 11:08:07 +0000
Subject: note 78922 deleted from function.array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133641@lists.php.net to get a copy of this message
Note Submitter: justinbr at andrew dot cmu dot edu ---- @Sam Yong - hellclanner [at] live dot com from below: There's already a range() function - http://us.php.net/manual/en/function.range.php It's used exactly like yours, plus it can do characters: <?php $values = range(1,1000); //$values = array(1,2,...,1000); $values = range(100,1); //$values = array(100,99,...,1); $values = range('a','z'); //$values = array('a','b',...,'z'); ?>

« previous php.notes (#133641) next »