Re: Using the echo tag...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 08, 2005 at 06:32:00PM -0500, Paul Williams wrote:
> Nope sorry. It says this error "
> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting 
> T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web 
> Server\htdocs\document1.php on line 6
> "

Acutally he is correct. You have another problem of which was
mentioned a few times in this thread as well. 

You have to enclose your array variable like such:

print <<<EOF
   {$array['key']}
EOF;


See why here:
  http://php.net/string

 

> 
> >From: "Richard Lynch" <ceo@xxxxxxxxx>
> > ...
> >
> >On Mon, November 7, 2005 11:31 am, Paul Williams wrote:
> >> ...
> >>
> >>
> >> print <<<< EOF
> >
> >You've got one too many <'s in there...
> >
> >print <<<EOF
> >


Curt.
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux