Search
 
SCRIPT & CODE EXAMPLE
 

PHP

range in php

<?php
  // range($start, $end [,$steps])
  $numbers = range(0, 5);
  print_r($numbers);
  // Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 )
	
  $numbers2 = range(0, 5, 2);
  print_r($numbers2);
  //Array ( [0] => 0 [1] => 2 [2] => 4 )
  
  
  ?>
Comment

PREVIOUS NEXT
Code Example
Php :: php var in string 
Php :: how to share a helper globally laravel 
Php :: php remove array element 
Php :: PHP validation/regex for URL 
Php :: remove item in an array php 
Php :: How to check if email exists in laravel login 
Php :: Fatal error: Exception thrown without a stack frame in Unknown on line php 
Php :: get post data in laravel 
Php :: laravel request except multiple 
Php :: composer require no cache 
Php :: make table in laravel 
Php :: laravel pass variables to view 
Php :: php recursive function to build array 
Php :: update user role wordpress 
Php :: convert text file to json php 
Php :: laravel nested query builder 
Php :: laravel apache public folder 
Php :: laravel check if request has value 
Php :: the uploaded file exceeds the upload_max_filesize in laravel 
Php :: create if not exist laravel 
Php :: laravel command parameter optional 
Php :: php to lowercase 
Php :: woocommerce cart length button shortcode 
Php :: laravel spatie asigne role 
Php :: php array check 
Php :: running laravel queues in shared hosting 
Php :: request file create cammand laravel 
Php :: get age in months php 
Php :: wordpress get user profile picture 
Php :: or where in codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =