php - Application doesn't enter the loop -


i have code :

<?php  error_reporting(e_all); ini_set('display_errors',1);  $wynik = 0; $licznik = 0; wykonaj();  function wykonaj() { echo '1'; for($i = 1; $i == 404; $i++) { $temp = $i / 100; echo $temp;  if(is_int($temp*1.5)) { global $wynik, $licznik; $wynik++; //$liczba[$licznik] = $i + ($i/100)*1.5; $licznik++; }  } }  echo "ilosc wynikow : $wynik<br/>liczby sa nastepujace :";   ?> 

my application returns :

1ilosc wynikow : 0
liczby sa nastepujace :

so think there error (logical ?), because line - echo $temp; isn't displayed yet, 1 before loop displayed. tried lot of things, not find solution. why errors ? compiler doesn't tell anything.

it enter loop if $i equal 404, it's set 1 right off won't happen.

syntax in for loop like:

for([set vars]; [set conditional]; [set increment]) 

the loop runs when conditional true.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -