Is it possible to do something like:
$haystack[0][0] = "hay";
$haystack[1][0] = "hay";
$haystack[2][0] = "hay";
$haystack[2][1] = "needle";
$haystack[3][0] = "hay";
for($i=0;$i<=3;$i++){
if(in_array("needle",$haystack[$i]){
echo "I found the needle!";
}
}
if so - how? I get a "wrong datatype" error using the above syntax and a blank screen when using in_array("needle",$haystack[$i][])
Thanks!
Mark