Forum Moderators: coopster

Message Too Old, No Replies

while loop

         

humpingdan

4:20 pm on Apr 5, 2004 (gmt 0)

10+ Year Member



this is what i want

//repeat loop till int >=30
for $int = 0; $int <= 30; $int++

//is the number divisible by 3 - if true echo
if $int % 3;
echo $int;

//is the number divisible by 4 - if true echo
if int$ % 4;
echo $int;

//if flase to above ignore it
elso repeat;

also need to count the true outputs?

Thanks

ergophobe

4:47 pm on Apr 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Basically you're on the right track, it just looks like your used to syntax from some other language.

This should tell you all you need to know

[php.net...]

[php.net...]

[php.net...]

[php.net...]