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
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
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 pag
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 expres
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 h
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 varia
net
>
> - 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 ques
> 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)
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]>
> Can one use 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 would
Can one use 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:
$message = <
Lot get_id(); ?> has been approved. Here is the link to the lot:
my_message;
Robin E. Kopetzky
Black Mes
s/Internet Services
www.blackmesa-isp.net
- 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 q
> 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]>
--
13 matches
Mail list logo