Creating a string that contains < character
Posted: Sun Jul 11, 2004 7:42 pm
I wish to create a string containing the < char for use with mail().
eg "First Name Last Name <username@domainname>"
I'm using an array ($list) containing data from a mysql table (fname, lname, email)
Why doesn't this work?
$to = '"';
$to .= $list['fname'];
$to .= ' ';
$to .= $list['lname'];
$to .= ' <';
$to .= $list['email'];
$to .= '>"';
It bombs when it hits the < char.
Any assistance appreciated.
- Andrew
eg "First Name Last Name <username@domainname>"
I'm using an array ($list) containing data from a mysql table (fname, lname, email)
Why doesn't this work?
$to = '"';
$to .= $list['fname'];
$to .= ' ';
$to .= $list['lname'];
$to .= ' <';
$to .= $list['email'];
$to .= '>"';
It bombs when it hits the < char.
Any assistance appreciated.
- Andrew