public function toArray()
    {
        $arrayResult = array();
        for ($i = 0; $i < $this->length(); ++$i) {
            if ($this->offsetExists($i)) {
                $arrayResult[] = $this->offsetGet($i)->toArray();
            }
        }

        return $arrayResult;
    }
public function toArray()
    {
        $arrayResult = array();
        for ($i = 0; $i < $this->length(); ++$i) {
            if ($this->offsetExists($i)) {
                $arrayResult[] = $this->offsetGet($i)->toArray();
            }
        }

        return $arrayResult;
    }
public function toArray ( ) { $ arrayResult = array ( ) ; for ( $ i = 0 ; $ i < $ this -> length ( ) ; ++ $ i ) { if ( $ this -> offsetExists ( $ i ) ) { $ arrayResult [ ] = $ this -> offsetGet ( $ i ) -> toArray ( ) ; } } return $ arrayResult ; }
Get All SQL Query as an array.

@return array
Get All SQL Query as an array .