src/Db.php
public function fetchValue($sql, array $parameters = [])
    {
        $statement = $this->executeQuery($sql, $parameters);

        return $statement->fetchColumn(0);
    }
public function fetchValue($sql, array $parameters = [])
    {
        $statement = $this->executeQuery($sql, $parameters);

        return $statement->fetchColumn(0);
    }
public function fetchValue ( $ sql , array $ parameters = [ ] ) { $ statement = $ this -> executeQuery ( $ sql , $ parameters ) ; return $ statement -> fetchColumn ( 0 ) ; }
Execute an SQL statement and return the first column of the first row.

@param string $sql
@param array  $parameters
@return string|false
Execute an SQL statement and return the first column of the first row .