[PHP] evaluating vars in a var

2002-12-06 Thread rolf vreijdenberger
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. span class='someclass'hello $firstName $lastName/span etc. Problem: I would like to put the whole email html layout in one

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
$htmlEmail = 'htmlbodyspan class=\'someclass\'hello $firstName $lastName/span/body/html'; //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

Re: [PHP] evaluating vars in a var

2002-12-06 Thread rolf vreijdenberger
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

Re: [PHP] evaluating vars in a var

2002-12-06 Thread Leif K-Brooks
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