X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=c56adab059809f21e5346f07a19d2ac1a4a25a76;hb=40a3f53ad48b0205d39498ab28d526b4fd30a0ec;hp=64ac4a9660af8fd81e9d710b354aabeb447ae24e;hpb=735545e765720a954a345bc068239e2fffa0dbe1;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 64ac4a9660..c56adab059 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1,7 +1,7 @@ '; - debug_print_backtrace(); - die(' 0) && (fetchUserData($userId, $keyColumn))) { + // Now get the data back + $data = getUserData($valueColumn); + } // END - if + + // Return it + return $data; +} + +// Wrapper for strpos() to ease porting from deprecated ereg() function +function isInString ($needle, $haystack) { + 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))); +} + // [EOF] ?>