You are here: Re: Frustrated and confused « PHP Programming Language « IT news, forums, messages
Re: Frustrated and confused

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация