LPMJ Example E-3 (Click on the icon to view the source for copy and pasting)
<?php
$names = array();
echo sizeof($names) == 0 ? "OK<br />" : "Not OK<br />";
$names[] = 'Bob';
echo sizeof($names) == 1 ? "OK<br />" : "Not OK<br />";
?>