note 30825 added to function.echo
| From: | ejot at telia dot com | Date: | Mon, 31 Mar 2003 18:36:08 +0000 |
| Subject: | note 30825 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46017@lists.php.net to get a copy of this message | ||
While using echo in the form of echo <<<END END; I came about what I believe to be some
curious behavior...
<?
echo <<<END
$_SESSION['username'] // Returns empty
$_SESSION[username] // Returns whatever's in there
END;
?>
--
http://www.php.net/manual/en/function.echo.php
http://master.php.net/manage/user-notes.php?action=edit+30825
http://master.php.net/manage/user-notes.php?action=delete+30825
http://master.php.net/manage/user-notes.php?action=reject+30825