range in php example

(Last Updated On: August 11, 2016)

Syntax:

range($start,$end);

Example:

range(1,10);

 

Program: range.php

<?php
$number=range(1,10);                 
print_r($number);
?>

 

Output:

range

 

 

Thanks for reading this post…………!!!

 

220 total views, 0 views today

Leave a Reply

Your email address will not be published. Required fields are marked *