public function getArrays($query)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            $result =  $this->statement->fetchAll(\PDO::FETCH_ASSOC);
            if ($result) {
                return $result;
            }
        }
        return false;
    }
public function getArrays($query)
    {
        $this->statement = $this->db->query($query);
        if ($this->statement) {
            $result =  $this->statement->fetchAll(\PDO::FETCH_ASSOC);
            if ($result) {
                return $result;
            }
        }
        return false;
    }
public function getArrays ( $ query ) { $ this -> statement = $ this -> db -> query ( $ query ) ; if ( $ this -> statement ) { $ result = $ this -> statement -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; if ( $ result ) { return $ result ; } } return false ; }
Get arrays by sql query

@param string $query Sql query

@return array|bool
Get arrays by sql query