<?php 

class PageClass {
  var $title;
  var $url;

  function PageClass($xx,$yy) {
    $this->x = $xx;
    $this->y = $yy;
  }
}

$temp[0] = new PageClass("aaa","bbb");
$temp[1] = new PageClass("ccc","ddd");
$temp[2]= new PageClass("eee","fff");
$temp[3] = new PageClass("ggg","hhh");


//print "size =" . count($item);
for($i=0;$i<4;$i++) 
     print $temp[$i]->x . "\n";



?>