![]() |
|
? |
![]() PHP FAQ PHP Articles PHP Help Bulletin Board PHP Manual (NEW!) First Time PHP'ers Help with programming Sql assignment help PHP Homework Help
|
? |
Control Structures Control structures allow decision making, looping and other flow management. Decision Making If something is true then branch in one direction else branch in another.? In the following example, we execute one of three commands depending on the time of day. PHP Code:
Web Browser Results:
PHP Code:
PHP Code:
This is a PHP function that returns the local time in 24 hour format. ?For more information on this and other PHP functions click here. ?The variable $date will contain a string ranging from "0" to "23". ?It is important to remember that this string can be treated like a number. if, else if, else For more information on decision making refer to the manual.
|