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

		return mb_strrpos($haystack, $needle, $offset, "latin1");
	}

	return strrpos($haystack, $needle, $offset);
}