View Single Post
Old 04-19-2009, 10:15 AM   #3 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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.
Salathe is offline  
Reply With Quote