Hi,
Can anybody explain why the output of this script is
not found
Found!
Here is the script...
$legalfields = array("reasonForRepair");
if (array_search("reasonForRepair", $legalfields) == TRUE) {
echo "Found!<br>";
} else {
echo "not found<br>";
}
$legalfields = array("foo", "reasonForRepair");
if (array_search("reasonForRepair", $legalfields) == TRUE) {
echo "Found!";
} else {
echo "not found";
}
?>
Thanks in advance,
Roger
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php