i tried that, wouldnt work
i have mixed values as array keys and for some reason it wouldnt compare right, but I did fix it however.
<?php
$selOpt = "All";
$key = 0;
if (gettype($key) == "integer") {
// a numerical value with a leading zero is considered a string.
$keystring = "0" . $key;
if ($selOpt == $keystring) {
echo "Match.";
} else {
echo "No Match. $selOpt";
}
} else {
if ($selOpt == $key) {
echo "Match.";
} else {
echo "No Match. $selOpt";
}
}
?>
Its a hack, but it works