Documentation

forSql

string public
\Bitrix\Main\DB\MssqlSqlHelper::forSql(
 string $value,
 integer $maxLength
);

This non-static method escapes special characters in the string to be used in SQL statement.

Parameters

ParameterDescriptionVersion
$valuePrinted value
$maxLengthLimit for string length if set.

Examples



© «Bitrix24», 2001-2024
Up