Example #1
0
 /**
  *
  * Binary version of stripos
  * @param $haystack
  * @param $needle
  * @param int $offset
  * @return int
  */
 public static function getBinaryStripos($haystack, $needle, $offset = 0)
 {
     if (defined("BX_UTF")) {
         if (function_exists("mb_orig_stripos")) {
             return mb_orig_stripos($haystack, $needle, $offset);
         }
         return mb_stripos($haystack, $needle, $offset, "latin1");
     }
     return stripos($haystack, $needle, $offset);
 }
Example #2
0
 function stripos($a, $b)
 {
     return function_exists('mb_orig_stripos') ? mb_orig_stripos($a, $b) : stripos($a, $b);
 }