bidvertiser

Monday, September 8, 2008

PHP Contents (Continued)

The IF statement.
if ()
{ ; }
elseif ()
{ ; }
else
{ ; }
The inline (ternary) if.
? true : false;





The switch-case statement.
switch ()
{
case :
;
[break;]
case :
;
[break;]
default:
;
}



The for loop statement.
for (;;)
{
;
}
The foreach loop statement.
foreach ( as [ => ])
{
;
[break];
[continue];
}



The while loop statement.
while ()
{
;
}
The do-while loop statement.
do
{
;
} while ();



The PHP functions.
function ([])
{
;
[return ;]
}

No comments: