note 27221 added to function.echo

From: Date: Wed, 27 Nov 2002 20:31:20 +0000
Subject: note 27221 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-40046@lists.php.net to get a copy of this message
note that the echo <<<END syntax doesnt like having array values given to it, eg: $arr['var']. You need to either define your variables before-hand ($var = $arr['var']) or use barewords ($arr[var]). The former adds clutter, the latter is considered bad practice. Unfortunatly the latter is often the most readable solution, so don't be surprised if you find nothing but bareword-style array values in any code you inheiret. I would consider this a bug, but I'm pretty sure it's intentional. -- http://www.php.net/manual/en/function.echo.php http://master.php.net/manage/user-notes.php?action=edit+27221 http://master.php.net/manage/user-notes.php?action=delete+27221 http://master.php.net/manage/user-notes.php?action=reject+27221

« previous php.notes (#40046) next »