iSelfSchooling.com - Since 1999  References  |  Job Openings  |
    Home  | Search more  | Oracle Syntax  | Instructor-Led in Class   | (Members to access to VIDEOS)
 

Copyright & User Agreement

   Suggestions Email2aFriendHomepage us! |  Bookmark

Services

  Vision/Mission

  Services

  Biography

  Contact Us

 FREE Training

  Start...

  SQL

  PL/SQL

  Forms 

  Reports

  DBA Fundamentals

  Performance

  Prepare for OCP

  ShareUrNotes

...

  Acknowledgement

  Who is who

  University Directory

  Links...

 

 

 

How to do control structures in PHP?

More Resources by Google:

How to do control structures in PHP?


IF statement.
if (condition) 
{
Statement(s);
}

Or
if (condition) 
{
Statement(s);
} else
{
Statement(s);
}

Or 

if (condition) 
{
Statement(s);
} elseif (condition)
{
Statement(s);
}

The Switch Conditional:
switch ($variable) {
case “value”:
statement(s);
break;
case “value”:
statement(s);
break;
default
statement(s);
break;
}

The loop condition:
for (initial expression; condition; closing expression) {
statement(s);
}

while (condition) {
statement(s);
}

do {
statement(s);
} while (condition);

foreach ($array) {
statement(s);
}

 

 

 
 
Google
 
Web web site