04-19-2009, 10:15 AM
|
#3 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Using print as an if condition isn't a particularly useful example since it always returns 1. An example where echo cannot be used, where print can, is:
PHP Code:
($something) or (print 'not something');
However, the times where you would use boolean comparisons like that might be rare depending on your style of coding.
|
|
|
|