I am trying to get the value from this next JSON array in a PHP variable.
This is the var_dump of the array:
array(3) { ["id"]=> string(2) "14" ["css"]=> string(400) "" ["json"]=> string(4086) " { "Canvas": [ { "MainObjects": { "After Participation": { "afterParticipationHeader": "Thank you!" }, "Invite Friends": { "InviteHeadline": "", "InviteMsg": "", "InviteImg": "" } }, "QuizModule": { "Questions": [], "Submit_Fields": [ { "label": "Name", "name": "txtName", "value": true } ] } } ] }" }
I can get the values ββfor ["json"] in PHP, for example:
$json = $data[0]['json'];
But how do I get a value from an array inside "json", for example, "AfterParticipationHeader". And "Submit_Fields"?
source share