- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/text/string.php
- Класс: BitrixMainTextString
- Вызов: String::getBinaryStrpos
static function getBinaryStrpos($haystack, $needle, $offset = 0)
{
if (defined("BX_UTF"))
{
if (function_exists("mb_orig_strpos"))
{
return mb_orig_strpos($haystack, $needle, $offset);
}
return mb_strpos($haystack, $needle, $offset, "latin1");
}
return strpos($haystack, $needle, $offset);
}