Simple Array question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Simple Array question

Post by JayBird »

Im sure you can creat and array of number by doing something like this

$numbers = array(1..10);

$numbers will then contain 1 2 3 4 5 6 7 8 9 10

Can't remember the correct way to do it though :(

Mark
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

yes, quite simple ;)
http://php.net/range
Post Reply