> Richard,
> The problem is with the str_replace()s. Consider the following:
>
> $myvar = 'this is a var.';
> $mytext = str_replace('is', 'is not', $myvar);
> ?>
>
> At this point $myvar still equals 'this is a var.' but $mytext is 'this is
> not a var.' $myvar hasn't been modfified by
t have a cumlative effect.
Something like the above would have the effect you're looking for.
--
Rich Cavanaugh
CTO, EnSpot.com
-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 4:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] email temp
string, or we can leave
//it be to do further things to
it. The example from above is
//similar to the method I use in my
TemplateEngine I wrote a
//little while back, I might just include
the source some time.
Hope this helps,
Chris "TunkeyMicket" Watford
-----
t;[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 2:32 AM
Subject: [PHP] email templates and str_replace
> I am trying to set up a template for an email program below you will
> see the test program the $mail_template is pulled from a database
> that is pre saved when it is s
I am trying to set up a template for an email program below you will
see the test program the $mail_template is pulled from a database
that is pre saved when it is saved the Placeholders are filled in
using str_replace. that is what I want it to do. But it does not work. What am
I missin
5 matches
Mail list logo