RE: [PHP4BETA] Feature Request: HERE Docs within a function?
| From: | Joey | Date: | Fri, 10 Dec 1999 04:27:26 +0000 |
| Subject: | RE: [PHP4BETA] Feature Request: HERE Docs within a function? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7750@lists.php.net to get a copy of this message | ||
Yup, that be it...I guess it is time to go home...after that, and the 2
bugs reports I closed but didn't close today...ugh. Too many hours.
--Joey Smith
On Thu, 9 Dec 1999, Daniel Landau wrote:
> Joey,
>
> I think you just need to make sure that your closing delimiter isn't
> indented, like so:
>
> function page_start($some_vars, ...)
> {
> print <<< EOH
> <HTML>
> ...
> EOH;
> }
>
> -Daniel
>
>
> ---Original Message-----
> > From: Joey [mailto:joey@samaritan.com]
> > Sent: Thursday, December 09, 1999 5:07 PM
> > To: PHP 4 Beta Test
> > Subject: [PHP4BETA] Feature Request: HERE Docs within a function?
> >
> >
> > Would it be possible to allow me to use here docs within a function...
> > I wanted to do:
> >
> > function page_start($some_vars, ...)
> > {
> > print <<< EOH
> > <HTML>
> > ...
> > EOH;
> > }
> >
> > But I get a bunch of backslashes and a parse error.
> >
> >
> > --Joey Smith
> >
> >
> > --
> > PHP 4.0 Beta Mailing List
> > <http://www.php.net/version4/>
> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> > For additional commands, e-mail: php4beta-help@lists.php.net
> > To contact the list administrators, e-mail: php4beta-admin@lists.php.net
> >
>
>