Thread
:
do NOT use {} for single if-else statements..
View Single Post
02-18-2007, 11:56 PM
#
10
Impluo
Status:
We're all mad here
Join date:
Aug 2005
Location:
Missouri
Expertise:
programming
Software:
Notepad
Posts:
1,606
iTrader:
0
/ 0%
Originally Posted by
derek lapp
for single statements, you're better off using the ? operator anyways.
PHP Code:
<?=
$==
10
?
'it'
s 10
' : '
it
's not 10'
;
?>
Thanks for that method, I like it without the if/else and brackets
Impluo
View Public Profile
Find More Posts by Impluo