lib/BaseStatement.php
public function getFirst()
    {
        $row = $this->getIterator()->current();

        if ($row !== null) {
            $this->close(); // don't leave the SQL statement open
        }

        return $row;
    }
public function getFirst()
    {
        $row = $this->getIterator()->current();

        if ($row !== null) {
            $this->close(); // don't leave the SQL statement open
        }

        return $row;
    }
public function getFirst ( ) { $ row = $ this -> getIterator ( ) -> current ( ) ; if ( $ row !== null ) { $ this -> close ( ) ; // don't leave the SQL statement open } return $ row ; }
Returns the first selected row, or null if zero rows were returned
@return array|null
Returns the first selected row or null if zero rows were returned