Skip to content
Advertisement

get correct data from array

i am trying to decode array. this is my array

JavaScript

i am using foeach to get answer like

JavaScript

is it possible from foreach. my code for it

and when i save it will shown “Call to a member function save() on array”

JavaScript

Advertisement

Answer

Is this what you’re looking for:

JavaScript

Note: make sure available and out_of_community columns are nullable by default in the db

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