<?php
//In PHP there are no structures
class Point {
public $x, $y;
}
class Size {
public $width, $height;
}
class Rect {
public $point;
public $size;
}
$rect = new Rect();
$rect->point = new Point();
$rect->point->x = 3;
$rect->point->y = 4;
$rect->size = new Size();
$rect->size->width = 10;
$rect->size->height = 12;
print_r($rect);