I was trying to use the in_array function to check whether a value existed in a array which looked like the following:
$ri[$index][name]
$ri[$index][filename]
However although the values where inserted ok in_array did not seem to find them. Eg using in array to look for val when
$ri[1][name]=val
returned false. I tried to use a one dimensional array to store the names in i.e. $ri[1]=val and that worked fine. Does this mean that in_array will only work with one dimenensional arrays or am I missing something??
Thnks!