I'm tired of searching for the correct syntax everytime I wan to use this line… if you're doing a simple one line "if" statement, you can use a "ternary conditional operator" – for example:
echo $variable == 'value' ? 'print if true' : 'print if false';
Related posts:
- Conditionally change path to HTTPS One of my clients had set it up so that...
Related posts brought to you by Yet Another Related Posts Plugin.
scriptygoddess
