src/Db/Client.php
public function getSingleResult($statement, $params = array())
    {
        $result = $this->getResults($statement, $params);

        if (!sizeof($result)) {
            return null;
        }

        return $result[0];
    }
public function getSingleResult($statement, $params = array())
    {
        $result = $this->getResults($statement, $params);

        if (!sizeof($result)) {
            return null;
        }

        return $result[0];
    }
public function getSingleResult ( $ statement , $ params = array ( ) ) { $ result = $ this -> getResults ( $ statement , $ params ) ; if ( ! sizeof ( $ result ) ) { return null ; } return $ result [ 0 ] ; }
Execute a statement, returning one row of results or null.

@param string $statement
@param array $params

@return null|array

@throws \Droid\Plugin\Mysql\Db\ClientException
Execute a statement returning one row of results or null .