|
Posted by dysfunct on 10/31/07 13:02
I just did this:
function array_isearch($num, $array){
$found = array();
$n = 0;
foreach ($array as $k => $V){
settype($v,string);
echo "The ".gettype($v)." ".$v." does NOT equal ";
echo "the ".gettype($num)." ".$num."<br/>";
if (strncasecmp($v,$num,6)==0){
$found[$n] = $k;
$n += 1;} }
return $found;
}
The thing is, I'm getting "The string does NOT equal the string
[6digit number]." It's not picking up that value from the array...
hmm......
Navigation:
[Reply to this message]
|