Generating a Range of Numbers the Easy Way

Submitted by Adam » After Haris' mention of the PHP function range(), I thought the kindest thing to do would be to give it a proper introduction. So here is that introduction! Range is native PHP function that takes 2 compulsory arguments and 1 optional argument (As of PHP 5.0.0 which defaults to 1) and returns an array. Seem ever so simple? Well it is! The 3 arguments the function can accept are as follows...
Rating: 3.0/5 | 874 clicks | 0 comments | 1 save | share | report

Share this tutorial

There are a number of different ways to share this tutorial with others. Below are the links to many different social networking and social bookmarking sites- just click on your favorite service and most of the work should be done for you. Other methods of sharing tutorials will come in the future.

digg it · save to del.icio.us · share on facebook · reddit · furl · blinklist · ma.gnolia · pixel groovy