php - a condition which will not proceed to step unless condition is true -
php - a condition which will not proceed to step unless condition is true -
anyone help...:d im creating personal calendar schedule while im learning php. come across part need set particular status , output display if status meet. see notes.
$n = 50 $n must not greater or equals 20 [ if ($n >= 20) ] else { $n - 10 }
will print if $n less 20
is possible?? friends told me utilize recursion i'm not familiar still trying learn.
thanks
i believe asking while-do
http://php.net/manual/en/control-structures.do.while.phpas per php manual:
$i = 0; { echo $i; } while ($i > 0);
or:
do { if ($i < 5) { echo "i not big enough"; break; } $i *= $factor; if ($i < $minimum_limit) { break; } echo "i ok"; /* process */ } while (0);
php recursion if-statement condition
Comments
Post a Comment