Re: print <<<EOF
| From: | jeremy brand | Date: | Tue, 28 Nov 2000 01:21:01 +0000 |
| Subject: | Re: print <<<EOF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27535@lists.php.net to get a copy of this message | ||
function show_html()
{
print <<< FOOBAR
this is your HTML.
put whatever you want in between here..
blah
blah
FOOBAR;
}
Make sure your ending EOF (or FOOBAR in my case) is flush left.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
"We're all Linux all the time, and very proud of it"
Jim Reese, Chief Operations Engineer, Google.com
On Mon, 27 Nov 2000, Christian Dechery wrote:
> Date: Mon, 27 Nov 2000 23:20:33 -0200
> From: Christian Dechery <lemming@vento.com.br>
> To: php-general@lists.php.net
> Subject: [PHP] print <<<EOF
>
> I can't get print <<<EOF to work....
>
> I wanna print like 100 lines of html...
>
> I have
> function show_html()
> {
> echo "something";
>
> I wanna print the html here
>
> }
>
> how do I use it???
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>