Skip to content
Advertisement

get key of multi dimension array (PHP Language)

Hi I have a problem regarding multi-dimension array. I have a set of array looking like this

JavaScript

the array is from

JavaScript

how do I want to get the array which the value is 0. Expected result/filter For example:

JavaScript

if changing the index is impossible, its ok.. Thank you

Advertisement

Answer

As you are using Laravel, you could use array helper such as this

You can use like this:

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