| PHP - if Function Control | | Print | |
PHP - if Function Control
The if statement is a standard conditional found in most languages. Here are the two syntaxes for the if statement:
if(expr) { if(expr):
statements statements
} elseif(expr) { elseif(expr):
statements statements
} else { else:
statements statements
} endif;
The if statement causes particular code to be executed if the expression it acts on is true. With the first form, you can omit the braces if you only need to execute a single statement.
Published in Website, PHP Tutorial, Learning PHP, PHP Scripts
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment.
| Users' Comments (0) |
|
No comment posted





