public function queryScalar($mode = null)
    {
        $result = $this->query(null, $mode);

        if (is_array($result)) {
            // Filter by values
            $result = array_values($result);
            return isset($result[0]) ? $result[0] : false;
        }

        return false;
    }
public function queryScalar($mode = null)
    {
        $result = $this->query(null, $mode);

        if (is_array($result)) {
            // Filter by values
            $result = array_values($result);
            return isset($result[0]) ? $result[0] : false;
        }

        return false;
    }
public function queryScalar ( $ mode = null ) { $ result = $ this -> query ( null , $ mode ) ; if ( is_array ( $ result ) ) { // Filter by values $ result = array_values ( $ result ) ; return isset ( $ result [ 0 ] ) ? $ result [ 0 ] : false ; } return false ; }
Queries for a single result-set returning a value of a first column

@param integer $mode Fetch mode. Can be overridden when needed
@return string|boolean
Queries for a single result - set returning a value of a first column