function in_str($string, $sub) { str_replace($sub, '', $string, $c); if($c) { return 1; } else { return 0; } }