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
At 07:40 AM 5/5/2006, 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?
Al,
Escape the $'s in your heredoc expression so that the variable names
remain and aren't evaluated, then eval() the whole
On Fri, 2006-05-05 at 10:40, 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.
Or just use str_replace
On 05/05/06, John Nichel [EMAIL PROTECTED] 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
Robert Cummings wrote:
On Fri, 2006-05-05 at 10:40, 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
Can one use ?php ? within the heredoc syntax or is there
another way?? I'm trying to dynamically generate email from
generic text but with obvious additions, like this:
http://us4.php.net/types.string says that heredoc acts just like double
quoted, which would mean it expands variables, so I
That's fine for that but I have several places that use if's and else's...
Sparky
- Original Message -
From: Jennifer Goodie [EMAIL PROTECTED]
To: Sparky Kopetzky [EMAIL PROTECTED]; PHP General
[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 16:47
Subject: RE: [PHP] Heredoc question
That's fine for that but I have several places that use if's and else's...
Sparky
http://us4.php.net/types.string says that heredoc acts just like double
quoted, which would mean it expands variables, so I would try just
Than I would suggest reading the manual page (the link I gave) to see
Subject: RE: [PHP] Heredoc question
Can one use ?php ? within the heredoc syntax or is there
another way?? I'm trying to dynamically generate email from
generic text but with obvious additions, like this:
http://us4.php.net/types.string says that heredoc acts just like double
quoted, which
[EMAIL PROTECTED]
To: Sparky Kopetzky [EMAIL PROTECTED]; PHP General
[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 16:47
Subject: RE: [PHP] Heredoc question
Can one use ?php ? within the heredoc syntax or is there
another way?? I'm trying to dynamically generate email from
generic
That's fine for that but I have several places that use if's and else's...
AFAIK, you can't do conditionals inside a here doc. But then you don't
have to build your entire output string in one here doc, either.
Hmm. Maybe you're trying to build templates?
--
Joel Rees [EMAIL PROTECTED]
--
11 matches
Mail list logo