public function first()
    {
        $tmpArray = $this->getArray();

        $key_first = array_key_first($tmpArray);
        if ($key_first === null) {
            return null;
        }

        return $tmpArray[$key_first];
    }
public function first()
    {
        $tmpArray = $this->getArray();

        $key_first = array_key_first($tmpArray);
        if ($key_first === null) {
            return null;
        }

        return $tmpArray[$key_first];
    }
public function first ( ) { $ tmpArray = $ this -> getArray ( ) ; $ key_first = array_key_first ( $ tmpArray ) ; if ( $ key_first === null ) { return null ; } return $ tmpArray [ $ key_first ] ; }
Get the first value from the current array.

@return mixed
<p>Return null if there wasn't a element.</p>
Get the first value from the current array .