Documentation

FieldName

mixed
CDBResult::FieldName(
 int column
 )

This method return field name by its ordinal number. Non-static method.

Parameters

ParameterDescription
column Field number.

See also

Examples of use

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


© «Bitrix24», 2001-2022
Up