public function toObjectArray()
  {
    $array = (func_num_args() > 1) ? $this->toArray(1) : $this->toArray();

    for($i = 0; $i < count($array); $i++)
    {
      $array[$i] = (object) $array[$i];
    }

    return $array;
  }
public function toObjectArray()
  {
    $array = (func_num_args() > 1) ? $this->toArray(1) : $this->toArray();

    for($i = 0; $i < count($array); $i++)
    {
      $array[$i] = (object) $array[$i];
    }

    return $array;
  }
public function toObjectArray ( ) { $ array = ( func_num_args ( ) > 1 ) ? $ this -> toArray ( 1 ) : $ this -> toArray ( ) ; for ( $ i = 0 ; $ i < count ( $ array ) ; $ i ++ ) { $ array [ $ i ] = ( object ) $ array [ $ i ] ; } return $ array ; }
Returns an array containing stdClass objects.

@return ArrayObject
Returns an array containing stdClass objects .