src/Parser/DateTimeParseResult.php
public function getOptionalField(string $name) : string
    {
        if (isset($this->fields[$name])) {
            if ($this->fields[$name]) {
                return \array_shift($this->fields[$name]);
            }
        }

        return '';
    }
public function getOptionalField(string $name) : string
    {
        if (isset($this->fields[$name])) {
            if ($this->fields[$name]) {
                return \array_shift($this->fields[$name]);
            }
        }

        return '';
    }
public function getOptionalField ( string $ name ) : string { if ( isset ( $ this -> fields [ $ name ] ) ) { if ( $ this -> fields [ $ name ] ) { return \ array_shift ( $ this -> fields [ $ name ] ) ; } } return '' ; }
Returns the first value for the given field, or an empty string if not present.

@param string $name

@return string
Returns the first value for the given field or an empty string if not present .