Na brzaka...
Code:
<?php
function findinstr($needle, $haystack)
{
$needle=strtolower($needle);
$haystack=strtolower($haystack);
$haystack=explode(" ",$haystack);
for ($i=0;$i<count($haystack);$i++)
{
if ($haystack[$i]==$needle) {return true;}
}
return false;
}
$string="Miso vozi Autox i ddddddddddddAuto!";
$find="aUto";
if (findinstr($find,$string)) {echo("Ima ga!");} else {echo("Nema ga!");}
?>
A man is smart. People are stupid.