Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php define array first 10 number


<?php
// array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
foreach (range(0, 12) as $number) {
    echo $number;
}

// The step parameter
// array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
foreach (range(0, 100, 10) as $number) {
    echo $number;
}

// Usage of character sequences
// array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');
foreach (range('a', 'i') as $letter) {
    echo $letter;
}
// array('c', 'b', 'a');
foreach (range('c', 'a') as $letter) {
    echo $letter;
}
?>

Comment

PREVIOUS NEXT
Code Example
Php :: laravel phpdoc collection of model 
Php :: laravel faker select between options 
Php :: autoloader php 
Php :: laravel chunk 
Php :: php get current page url 
Php :: ?? php 
Php :: get_adjacent_post wordpress 
Php :: exception in php or try catch in php 
Php :: create table laravel 
Php :: Change date format on view - laravel 
Php :: laravel store file 
Php :: how run job laravel in cpanel host 
Php :: mysql Cannot pass parameter 2 by reference 
Php :: rule for radio button in laravel 
Php :: php header not working 
Php :: laravel validation required if 
Php :: json encode php 
Php :: get php ini config from terminal 
Php :: display pdf file in laravel 
Php :: php rearrange array 
Php :: count column eloquent laravel 
Php :: insert into laravel 8 
Php :: if is page woocommerce 
Php :: laravel import csv to database 
Php :: php switch case greater than 
Php :: how to download a file in php 
Php :: acos() php 
Php :: magento 1.9 get all product 
Php :: how to use union and intersection in laravel query 
Php :: which programming languae does php resemble to? 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =