I feel silly, but this thing has been kickin my backside all day.
Should be OH SO SIMPLE. Thought I had it licked -- but nooo.
I just want to convert "Name" and "email@address.com"
to a single string "Name<email@address.com>"
for insertion into a single column in mysql db.
That's it. That's all....
Echoed in html the following returns TJ McDonald<tj@email.com> but inserts as TJ McDonald <tj@email.com> Sadly, after countless variations on the following this is as close as I've managed to get.
$cust_email ='tj@email.com';
$FULL_NAME = "TJ McDonald";
//$cust_email =$focus->billing_address_email;
$to_add_str = htmlspecialchars("<$cust_email>", ENT_COMPAT);
$to_addrs_emails = $FULL_NAME . '' . $to_add_str;
echo $to_addrs_emails;