// Wrapper for strpos() to ease porting from deprecated ereg() function
function isInString ($needle, $haystack) {
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'needle=' . $needle . ', haystack=' . $haystack . ', returned=' . intval(strpos($haystack, $needle) !== false));
return (strpos($haystack, $needle) !== false);
}
// Wrapper for strpos() to ease porting from deprecated eregi() function
// This function is case-insensitive
function isInStringIgnoreCase ($needle, $haystack) {
- return (isInString(strtolower($haystack), strtolower($needle)));
+ return (isInString(strtolower($needle), strtolower($haystack)));
}
// [EOF]