public function toArray()
    {
        $result = [];
        foreach ($this as $key => $value) {
            $result[$key] = $value;
        }
        return $result;
    }
public function toArray()
    {
        $result = [];
        foreach ($this as $key => $value) {
            $result[$key] = $value;
        }
        return $result;
    }
public function toArray ( ) { $ result = [ ] ; foreach ( $ this as $ key => $ value ) { $ result [ $ key ] = $ value ; } return $ result ; }
Returns an array containing all results for this cursor
@return array containing all results for this cursor.
Returns an array containing all results for this cursor