src/sql/MSqlRecord.php
public function getFieldName(int $index)
    {
        $keyArray = array_keys($this->record);

        if ($index > 0 && $index < $this->count()) {
            return $keyArray[$index];
        }

        return null;
    }
public function getFieldName(int $index)
    {
        $keyArray = array_keys($this->record);

        if ($index > 0 && $index < $this->count()) {
            return $keyArray[$index];
        }

        return null;
    }
public function getFieldName ( int $ index ) { $ keyArray = array_keys ( $ this -> record ) ; if ( $ index > 0 && $ index < $ this -> count ( ) ) { return $ keyArray [ $ index ] ; } return null ; }
Returns the name of the field at position index. If the field does not
exist, an empty string is returned.

@param int $index
@return null|string|int
Returns the name of the field at position index . If the field does not exist an empty string is returned .