RE: [PHP4BETA] Feature Request: HERE Docs within a function?

From: Date: Fri, 10 Dec 1999 01:20:42 +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-7749@lists.php.net to get a copy of this message
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 >

« previous php.version4 (#7749) next »