Quick Conditional in PHP

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:
server, developing, php

Copyright © 2013 - Brothers Bennettw - Powered by Hexo
- Ported theme GreyShade -