Archives: 2009 January 01

PHP Code shortcuts to if/else statements

January 1st, 2009, 5 Comments

Here are some very useful PHP code shortcuts that I have learned. You may have seen them before or you may not have, but if you didn’t understand them, hopefully you will after reading this article. The first is the Ternary Operator <?php $var = (expression) ? ‘value if true’ : ‘value if false';   […]

Feed

http://php-thoughts.cubedwater.com / 2009 January 01