Search
 
SCRIPT & CODE EXAMPLE
 

PHP

a backwards counting forloop

<?php
// a array
$weekday = array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday", "Sunday");
// the for loop
for($i = 6; $i >= 0; $i = $i -1){ 
    print ( "$weekday[$i]<br>" );
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: Yii2 Fatal Error: Require_Once() 
Php :: ajax update method in php pdo 
Php :: iterator impliment php 
Php :: php delete item from array 
Php :: get first 200 characters string php 
Php :: check php version mac 
Php :: is_array php 
Php :: Remove product (item) from WooCommerce checkout page using AJAX 
Php :: disable SSL check in PHP cURL 
Php :: laravel optional route parameter in middle of url 
Php :: migration bool type eloquent orm 
Php :: php classes 
Php :: how to debug in php 
Php :: messed up pagination laravel 
Php :: laravel store multiple files 
Php :: composer create-project --prefer-dist laravel/laravel blog 
Php :: how to print all session variables in php 
Php :: jetstream seed user with team 
Php :: create date from string php 
Php :: exclude methods in resource route laravel 
Php :: wp_query item count 
Php :: fixuphost 
Php :: carbon date format 
Php :: wp_query post by category id 
Php :: php json request get value 
Php :: wp display custom fields 
Php :: how to get value of textarea in php 
Php :: convert string to datetime symfony 
Php :: php nan 
Php :: laravel php artisan make:controller in subfolder 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =