I have this array in my php:
Array (
[0] => Array (
[catId] => 0
[catName] =>0
[hasSubCategory] => 0
[hasSubView] => 0
)
[1] => Array (
[catId] => 1020
[catName] => apple
[hasSubCategory] => 0
[hasSubView] => 1
)
[2] => Array (
[catId] => 1040
[catName] => orange
[hasSubCategory] => 1
[hasSubView] => 0
)
How can I print the catName.value where catId.value = 1040?
In this case the output should be ‘orange’;
Try this
I hope it will will help.