skip to Main Content

Parse string of comma-sperated names and emails to create an array of associative rows – PHP

I get this specific string from a Mysql DB: $string = "john('[email protected]'), frank('[email protected]'),simon('[email protected]')"; I need to have the string inserted in the following code: $sendSmtpEmail = new SendinBlueClientModelSendSmtpEmail([ 'subject' => 'Report', 'sender' => ['name' => 'sender', 'email' => '[email protected]'], 'to'…

VIEW QUESTION
Back To Top
Search