note 11882 added to function.echo.php

From: Date: Mon, 12 Mar 2001 03:49:03 +0000
Subject: note 11882 added to function.echo.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12283@lists.php.net to get a copy of this message
Additional notes to my previous note. "echo" is not a function and will not have value at all. Therefore echo cannot be a valid expression. (In PHP, expression is anything that have value) ?: expects expression. echo() is not a expression, since it does NOT have value. print() is a expression, since it has/returns value. echo() and print() is nearly identical except the fact, that echo() cannot be a expression, as far as I know. [How about add additional comment to manual itself? I think it's worth for it. Editor means "not a function" = "echo does not return value at all" = "not a expression", it was less obvious to me] http://www.php.net/manual/en/function.echo.php

« previous php.notes (#12283) next »