I’ve been using PHP for years, but had never used the quick if construct:


$var = (conditional) ? ‘true’ : ‘false’;

?>

Beautifully simple; but not in any of the books I used to learn PHP!

Technorati Tags:
, ,