• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/mysql/database.php
  • Класс: CDatabaseMysql
  • Вызов: CDatabaseMysql::ForSqlLike
public function ForSqlLike($strValue, $iMaxLength = 0)
{
	if ($iMaxLength > 0)
	{
		$strValue = mb_substr($strValue ?? '', 0, $iMaxLength);
	}

	$this->DoConnect();
	return mysqli_real_escape_string($this->db_Conn, str_replace("\", "\\", $strValue ?? ''));
}