range in php example

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…………!!!

 

Leave a Reply