skip to Main Content

How can I use substr on json object with for loop?

Could someone help on how to loop over response while using substr to get each variable. The variables would be Amount, Type, Balance, Date. I have the json response [ [ "AmountTypeBalanceDate", "$27.90Debit$6.3011/22/22, 3:32 PM", "$30.00Credit$34.2011/22/22, 5:13 PM", "$27.90Debit$4.209/12/22, 4:01…

VIEW QUESTION

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