Stuff
public text v1 · immutablefunction searchArray($needle, $haystack)
{
$r = array();
$num = count($haystack);
for($i = 0; $i < $num; $i++)
{
if(strpos($haystack[$i], $needle) !== false)
{
$r[] = true;
}
}
if(in_array(true, $r))
{
return true;
}
else
{
return false;
}
}