note 34771 added to function.echo
| From: | szczesniak at poczta dot nboy dot orgonet dot pl | Date: | Wed, 06 Aug 2003 09:15:51 +0000 |
| Subject: | note 34771 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53499@lists.php.net to get a copy of this message | ||
Hi!
This code is OK.
<?
$x=2;
($x==2)?printf("Karol"):printf("Kamil");
?>
But this code is not OK. Why?
<?
$x=2;
($x==2)?echo("Karol"):echo("Kamil");
?>
TIA
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34771
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34771&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34771&report=yes