<?
//In case you are wondering 'echo' is very similar to 'print'
$salary = 100000;
switch ($salary) {
case ($salary < 25000):
echo "You have no chance";
break;
case ($salary < 50000):
echo "Are you in shape?";
break;
case ($salary <= 100000):
echo "Gold dig it up!";
break;
case ($salary < 250000):
echo "Facebook or Twitter Stock Options?";
break;
print 'default';
}
<?
//In case you are wondering 'echo' is very similar to 'print'
$salary = 100000;
switch ($salary) {
case ($salary < 25000):
echo "You have no chance";
break;
case ($salary < 50000):
echo "Are you in shape?";
break;
case ($salary <= 100000):
echo "Gold dig it up!";
break;
case ($salary < 250000):
echo "Facebook or Twitter Stock Options?";
break;
print 'default';
}