PDA

View Full Version : Array help


Superbronx
05-26-2002, 12:25 AM
Is there an operator in php that can shorten an array? For example, in perl, you would do this -

Before:
[1,2,3,4,5,6,7,8,9]

After:
[1..9]

Anyone know?

Dark_Wizard
05-26-2002, 01:23 AM
<a href="http://www.php.net/manual/en/function.range.php" target="_blank">http://www.php.net/manual/en/function.range.php</a>

Superbronx
05-26-2002, 01:45 AM
sweet. Thanx

You guys rule ;)