switch ($x)
{
case 1:
echo "Number 1";
break;
case 2:
echo "Number 2";
break;
case 3:
echo "Number 3";
break;
default:
echo "No number between 1 and 3";
}
?>
<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
elseif ($d=="Sun")
echo "Have a nice Sunday!";
else
echo "Have a nice day!";
?>
$str = "hahahaha";//if casted to an int, would be 0
$int = 5;
$result = $str + $int; //would be 5 still
Nott32;641944 said:PHP is like the complete pwnage scripting language for web stuff ....
Nott32;641960 said:Frieking php5 is pissing me off Dosnt show errors in the script so all I get is a fucking blank page. >_<
Theres my ub3r l337 PHP ScriptPHP:<?php //Wont show images FYI echo "MUHAHAHAHA its the RunUO Forums"; include 'http://www.runuo.com/forums'; ?>