note 30825 modified in function.echo by jacques

From: Date: Sat, 17 May 2003 17:28:01 +0000
Subject: note 30825 modified in function.echo by jacques
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48186@lists.php.net to get a copy of this message
[Editor's Note: When using echo <<<EOF ... EOF; You can specify the variable in { }'s like {$_SESSION['username']} which would then return that value in the output. --jacques@php.net] 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; ?> --was-- 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

« previous php.notes (#48186) next »