Re: heredoc syntax

From: Date: Wed, 20 Oct 2004 19:00:46 +0000
Subject: Re: heredoc syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199928@lists.php.net to get a copy of this message
Adil wrote:
anyone know why heredoc syntax might not work with php5/apache installed. I can't get even the simplest strings in heredoc syntax to work and I've tried just cutting and pasting other peoples stuff in that syntax as well, and still no luck thx. Adil.
Heredoc syntax is pretty rigid and it's easy to have it wrong invisibly. $varname = <<<END Text of string END; The first END must be at the end of the line, nothing after it, not even a blank space. The last END must be at the beginning of the line, not before it, not even a blank space. Janet -- Janet Valade -- janet.valade.com

« previous php.general (#199928) next »