queryScalar
string|null public \Bitrix\Main\DB\Connection::queryScalar( string $sql, array $binds = null );
This non-static method executes a query, fetches a row and returns single field value from the first column of the result.
Parameters
Parameter | Description | Version |
---|---|---|
$sql | SQL query. | |
$binds | Binded array. |
Exceptions
Examples
© «Bitrix24», 2001-2025