shane18 Posted February 7, 2010 Share Posted February 7, 2010 @>IF STATEMENT<@ if($A) if(!$A) if($A == $B) if($A != $B) if($A >= $B) if($A <= $B) if($A > $B) if($A < $B) if($A === $B) if($A !== $B) if($A && $B) if($A || $B) if($A == $B && $C) if($A == $B && $C == $D) if($A == $B || $C == $D) if($A && $B == $C && $D > 1) EXAMPLE if($LAST_ACTIVITY >= time() + 3600){ echo "ONLINE"; }else{ echo "OFFLINE"; } @>WHILE LOOP<@ while($A > 2) while($A < 2) while($A >= 2) while($A <= 2) while($ROW = $RESULT->fetch_object()) EXAMPLE while($BUDDY = $BUDDIES->fetch_object()){ echo "$BUDDY<BR>"; } Are all these ways correct syntax? Quote Link to comment https://forums.phpfreaks.com/topic/191277-statements/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.