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';
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
scriptygoddess

