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

 

432 total views, 1 views today

Leave a Reply

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