Booleans. What an amazing concept.
\n";
$yes = TRUE;
$no = FALSE;
$maybe = 5 > 4;
echo "[$yes] [$no] [$maybe]
\n"; // Integers $int = 45; $oct = 045; $hex = 0x45; $div = 5/6; echo "Integer: $int $oct $hex $div
\n"; // Floats $x = 4.5; $y = 2.1e17; echo "Float: $x $y
\n";
// Lots of things to do with strings.
echo "Strings:
";
$fred = "Tim";
$freds = "Willoby";
$barney = "fred";
echo "$fred $freds {$fred}s ${fred}s
";
echo "${barney} ${$barney}
";
$mike = $fred . '-' . $barney;
echo "$mike $fred[2]
";
$ss = <<
$fred and $barney went to the movies.';
?>