I have an an array, which I reversed to give the following result:
 => nameOrder=1
 => nameOrder=0
 => priceOrder=1
 => http://lsomedomain/somecategory
The values I want to check for are nameOrder,priceOrder
I want to iterate through it and record (in another array) the key for the first time I find an occurence of nameOrder and priceOrder. When I find a match, I ingore any other occurences - in this case . So in this example the resulting array would be
 => 0
 => 2
Had a look at using array_walk but not having much luck.
Any help much appreciated!