Re: heredoc question
| From: | Dave Goodchild | Date: | Fri, 05 May 2006 17:20:53 +0000 |
| Subject: | Re: heredoc question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235657@lists.php.net to get a copy of this message | ||
Or just use str_replace
On 05/05/06, John Nichel <john@kegworks.com> wrote:
Al wrote: How can I include "place holders" for variables in a heredoc such that after the heredoc is declared, I can assign the variables? I have a config file with a heredoc string declared. I'd like to keep the include config.inc at the top of my page. Down in the page, when I call the heredoc variable, I'd like to replace the "place holders" with a values assigned in the page, below the include statement. I know I can break up the heredoc into several segments and put the variables between them; but, I rather not. Seems like there should be an obvious way to do this. Thanks... printf()? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon!