Yes. If it was in double quotes, it would parse the variables before
the loop started. Another way would be to put it in double quotes and
escape the dollar signs.
Rolf Vreijdenberger wrote:
I notice that you put everything in single quotes and then escape it.
is there any special reason for
thanks a lot,
I thought there might be a trick,
this is really helpful,
thanks again
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$htmlEmail = 'hello $firstName
$lastName';
//Start loop
eval("\$thisemail = $htmlemail");
//Send mail out, using $thisemail for mail body
//End loop
rolf vreijdenberger wrote:
Hi,
this problem came forth from my previously posted -Mail(): how much time-,
but is different so I posted it seperatel
Hi,
this problem came forth from my previously posted -Mail(): how much time-,
but is different so I posted it seperately.
I make html emails with personal stuff in it e.g.
hello $firstName $lastName
etc.
Problem:
I would like to put the whole email html layout in one var, like this:
$htmlEmail =
4 matches
Mail list logo