range
php range

print_r(range(0,10)); // çıktısı : Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 [7] => 7 [8] => 8 [9] => 9 [10] => 10 )
Büyükten küçük sayıya istediğimiz aralıklarla gidelim.
print_r(range(100,10,5)); // çıktısı : Array ( [0] => 100 [1] => 95 [2] => 90 [3] => 85 [4] => 80 [5] => 75 [6] => 70 [7] => 65 [8] => 60 [9] => 55 [10] => 50 [11] => 45 [12] => 40 [13] => 35 [14] => 30 [15] => 25 [16] => 20 [17] => 15 [18] => 10 )
Tepkiniz Nedir?






