X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=055cf55b888473364fe3687fc25f61491d18439a;hp=13a0fce739768900e76644b92ae6df18134708f4;hb=95ebee659171d4ad5ffd9ac55c1dbd68a90016fe;hpb=3bcb292dd0b55177499600c226d5d2aa8a932ce7 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 13a0fce739..055cf55b88 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] ?>