Posts Tagged by ternary
PHP Tutorial: Convoluted Code - Combining Ternary Operators and Anonymous Functions
| May 30, 2012 | Posted by Greg Bulmash under PHP |
Following on yesterday's post about chaining if statements without brackets on a single line, I tried to explore other ways to perform this "test if the variable is set, then do a comparison if it is" logic. I created one of the most convoluted lines of code I've ever written. It's no SQL join that…
Recent Comments