Hi

How to figure out of a value is found using array_search ?

eg:

$myarray = array("val1","val2","val3");
if(array_search("val2",$myarray))
{
    print "Value found";
}

the above will work, but...

if(array_search("val1",$myarray))
{
    print "Value found";
}

the above will not work as "val1" is key 0, how can I solve this ?

Thanks in advance

Steen



Reply via email to