For an attribute expression like [0]dates[0], this method will return the value of $model->dates[0].
See BaseHtml::getAttributeName for more details about attribute expression.
If an attribute value is an instance of [[ActiveRecordInterface]] or an array of such instances,
the primary value(s) of the AR instance(s) will be returned instead.