I am trying to use extra fields in K2. I do it all the time - but in this case, sometimes some fields have values, and others don't. So the key is not consistent.
Is there a way for me to refer to them by name or id instead of by key of the automatic array?
I tried this and it does not seem to work:
$streetaddress = $this->item->extra_fields->id[249];