Check this out:
Quote:
Quoted from PHP Doc: print()
print() is not actually a function (it is a language construct) so you are not required to use parentheses with it.
|
Quote:
Quoted from PHP Doc: echo()
// because echo is not a function, following code is invalid.
($some_var) ? echo('true'): echo('false');
// However, the following examples will work:
($some_var) ? print('true'): print('false'); // print is a function
echo $some_var ? 'true': 'false'; // changing the statement around
|
So... is print a function or not?