[X] Choose Font Here

PHP Conditional Statements

 

Very often when you write code, you want to perform different actions for different decisions.

The If...Else Statement

Syntax


if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;


The Switch Statement


Syntax

switch (expression)
{
case label1:
code to be executed if expression = label1;
break;


case label2:
code to be executed if expression = label2;
break;


default:
code to be executed
if expression is different
from both label1 and label2;
}

 

တျခား PHP Post ေတြအားလုံး ကို ႏွစ္သက္ရာ ေရြးဖတ္ ခ်င္တယ္ဆိုရင္ ဒီ Link ေလးကို Click လိုက္ပါ။

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

Login Form

Categories Table View

JoomlaWatch Stats 1.2.9 by Matej Koval

Facebook Share

Share on facebook

Accordion FAQ

mod_joomtouch

Version Iphone

Version Iphone by JoomTouch