Documentation

FieldsCount

int
CDBResult::FieldsCount()

This method returns number of fields of the retrieval result. Non-static method.

Parameters

No parameters.

See also

Примеры использования

<?
$rs = $DB->Query($query,true);
$intNumFields = $rs->FieldsCount();
$i = 0;
while ($i < $intNumFields) 
{
	$arFieldName[] = $rs->FieldName($i);
	$i++;
}
?>


© «Bitrix24», 2001-2022
Up