Page 1 of 1

Syntax help...

Posted: Fri Mar 05, 2010 9:18 am
by churd
I am trying to convert this static line:

Code: Select all

$to = "FirstName LastName <somewhere@something.com>";
To a dynamic, variable driven version:

Code: Select all

$to = "$wo_send_fname , $wo_send_lname , "<" $wo_send_email ">";
I know my syntax is completely messed up, but I can't for the life of me wrap my head around how to treat variables differently than text.

Re: Syntax help...

Posted: Fri Mar 05, 2010 9:20 am
by Weirdan

Code: Select all

 
$to = "{$firstName} {$lastName} <{$email}>";
 

Re: Syntax help...

Posted: Fri Mar 05, 2010 9:30 am
by churd
Weirdan wrote:

Code: Select all

 
$to = "{$firstName} {$lastName} <{$email}>";
 
...... I promise, one day I will ask a hard question :) .

Thank you so much!