public function all(string $sql, $par = null, string $key = null, bool $skip = false, bool $opti = true) : array
    {
        return $this->get($sql, $par, $key, $skip, $opti)->toArray();
    }
public function all(string $sql, $par = null, string $key = null, bool $skip = false, bool $opti = true) : array
    {
        return $this->get($sql, $par, $key, $skip, $opti)->toArray();
    }
public function all ( string $ sql , $ par = null , string $ key = null , bool $ skip = false , bool $ opti = true ) : array { return $ this -> get ( $ sql , $ par , $ key , $ skip , $ opti ) -> toArray ( ) ; }
Run a SELECT query and get an array
@param string   $sql      SQL query
@param array    $par      parameters
@param string   $key      column name to use as the array index
@param bool     $skip     do not include the column used as index in the value (defaults to `false`)
@param bool     $opti     if a single column is returned - do not use an array wrapper (defaults to `true`)
@return Collection the result of the execution
Run a SELECT query and get an array