How would I do the following Perl in PHP?
if (defined($hash{"foo"})) {
print "entry already exits";
}
I thought in_array would be the correct way but it never reports true.
if (in_array("foo", $hash)) {
print "entry already exits";
}
what function should I use?
thanks,
-j