Variables:

"; echo gettype($count)."
"; echo $list_price."
"; echo gettype($list_price)."
"; echo $first_name."
"; echo gettype($first_name)."
"; echo $is_valid."
"; echo gettype($is_valid)."
"; echo $is_new."
"; echo gettype($is_new)."
"; echo MAX_QTY."
"; echo gettype(MAX_QTY)."
"; ?>

Arithmetic Operator:

"; $result = $x - $y; echo $x . " - " . $y . " = " . $result . "
"; $result = $x * $y; echo $x . " x " . $y . " = " . $result . "
"; $result = $x / $y; echo $x . " / " . $y . " = " . $result . "
"; $result = $x % $y; echo $x . " mod " . $y . " = " . $result . "
"; ?>

Formatting Numbers:

"; $nf = number_format(12345, 2); //2 decimal places echo $nf . "
"; echo gettype($nf)."
"; $nf = number_format(12345.6789, 2); //round 2 decimal echo $nf . "
"; $date = date('Y-m-d'); echo $date."
"; echo gettype($date)."
"; $date = date('m/d/y'); echo $date."
"; $date = date('M.d.Y,D'); echo $date."
"; ?>

Relational Operators:

"; if (empty ($investment)) { echo '$investment is empty'; } ?>

Loops:

"; $counter++; } echo "
"; for ($counter = 1; $counter <=12; $counter = $counter+1) { print "$counter
"; } echo "
"; for ($x=1; $x<=12; $x=$x+1) { for ($y=1; $y<=6; $y=$y+1) { echo $x.",".$y."; "; } echo "
"; } echo "
"; echo "

\n"; for ($x=1; $x<=12; $x=$x+1) { echo "\n"; for ($y=1; $y<=6; $y=$y+1) { echo "\n"; } echo "\n"; } ?>

 

\n"; echo $x.",".$y."; "; echo "