class Item {
var $name;
function Item( $name="item") {
$this->name = $name;
}
function setName( $n) {
$this->name = $n;
}
function getName () {
return $this->name;
}
}
$item = new Item("5");
print $item->getName ();
?>