|
Posted by CyberDog on 03/07/06 13:51
Gernot Frisch wrote:
> $arr = split(' ', 'Kung Fu Fighting');
>
> if (is_inside_array($arr, 'Fu') )
> ...
>
>
> how do I program something like that? Checking if a value is inside
> the array?
> I tried: isset($arr['Fu']), but it returns nothing...
>
$arr = split(' ', 'Kung Fu Fighting');
if (array_search('Fu', $arr)) {
echo "Found!";
} else }
echo "Value not in array";
}
http://php.linux.hr/manual/en/function.array-search.php
Best regards,
M.R.
[Back to original message]
|