So here is my array:
array(1) { [0]=> string(79) “{“form_array”:{“element1″:”value1″,”element2″:”value2″,”element3″:”value3″}}” }
How can I extract “form_array” as an array?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You actually have just a simple array with one element, which is a string, that seems to be JSON encoded. To get its data, you may use the following:
The steps may of course be simplified into a single row. I just separated them for readability and clarity.