RE: Parse Error... how to fix?

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

 



Richard Lynch <mailto:ceo@xxxxxxxxx>
    on Thursday, December 16, 2004 10:46 AM said:

>>     "<TITLE> $language['program_name'] </TITLE>\n" .
> 
> #1. Get rid of the ''s around program_name.  Those won't work inside
> of ""s.

echo "<title>{$language['program_name']}</title>\n";

http://us2.php.net/manual/en/language.types.array.php

> #3. Just break out of PHP for anything more than two lines of HTML.

...or use heredoc syntax.

http://us2.php.net/manual/en/language.types.string.php#language.types.st
ring.syntax.heredoc



Chris.

-- 
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