Skip to content
Advertisement

How to write foreach loop for array in php

After submitting the form i am getting the array

JavaScript

I need this look like this:

JavaScript

I am writing this like:

JavaScript

Showing error

JavaScript

Please help me to fix this error

Advertisement

Answer

It is a JSON String, You have to decode it first using Json_decode

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement