Tuesday, March 7, 2017

How to retrieve the complete array element or index from the multi-dimensional array when its some of the key and values are known

I have an array arrays of array elements which consists of arrays. So, now suppose I want to retrieve the sku and price whose key value is 2=>5 and 3=>7 so it should return price=>13 and sku=>bc i.e. that array whose index is at 1 in the array.



via msonowal

Advertisement