Honestly, I hate PHP's STRPOS. I never seem to remember how to use it, unless I look it up on php.net. I decided to make my own function to check if one string is present in another. Other than slower loading times, is there anything bad about using my custom function? Thanks.
Code:
<?
function aisinb($string, $string2) {
$string2_copy = $string2;
$string2_copy = str_replace($string, "", $string2_copy);
if ($string2 != $string2_copy) {
return TRUE;
} else {
return FALSE;
}
}
?>