array_keys($boo lword) = Array ( [0] => 'album' [1] => 'keywords' [2]
=> 'persons' [3] => 'events' [4] => 'image_alt' [5] =>
'image_creation _start_date' [6] => 'image_creation _end_date' [7] =>
'image_location _city' [8] => 'image_location _state' [9] =>
'image_location _country' )
=> 'persons' [3] => 'events' [4] => 'image_alt' [5] =>
'image_creation _start_date' [6] => 'image_creation _end_date' [7] =>
'image_location _city' [8] => 'image_location _state' [9] =>
'image_location _country' )
being strings.
So why does this fail???
[PHP]
print_r(in_arra y('album', array_keys($boo lword)));
[/PHP]
This produces FALSE or NULL. But it's right there IN the array!! What
on earth is going on? Is this a failure in the part of in_array() that
I am unaware of?
This is a major showstopper in my search code PHP script I'm writing
for my application, please help someone!
Thanx
Phil
Comment