Skip to content
Advertisement

Check if data is in array in PHP [closed]

Using Codeigniter 3 I need to compare two json object. To explain better, below the json data I have to check:

JavaScript

I need to compare the above data with the following json object.

JavaScript

I have to select data from the first json object that compare in the secon one with “available” field equal to 1.

Hope the edited my question, I hope is now clear. My apologize for my bad english.

Advertisement

Answer

Try this :

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