Wednesday, 08 October 2008
 
 

PHP - if Function Control PDF  | Print |  E-mail
 

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.

 

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)

Comment an article
  Name
  E-mail
   Title
Available characters: 600
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

 
Top! Top!