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? Link to comment https://forums.phpfreaks.com/topic/191277-statements/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.