php test

[insert_php]

// this could be print or echo

print “Hello World!”;
echo “Hello World”;
$greet = “Hello”;
// this could be print or echo
echo “this one will be done by variable”;
echo ” $greet world”;

//variable

$a = 1;

$b=2;

$c=$a.$b;

echo “$c  —- “;

$s=mktime (1,1,1,2,4,12,1);

echo ”          $s        “;

print date(“d/M/y”,$s);

switch ($c)

{

case $c>12;

echo “c is greater than 12”;

break;

case $c==12:

echo “c is equal to 11”;

break;

//default:

//echo “c is less than 12”;

}

[/insert_php]

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Archived Articles