can you help me what is
here
$this->contents = $contents;
it must be like this
$this->contents=$contens
musn't it?
thanks for attention beforehands
<?php
class Box
{
var $contents;
function Box($contents) {
$this->contents = $contents;
}
function get_whats_inside() {
return $this->contents;
}
}
$mybox = new Box("Jack");
echo $mybox->get_whats_inside();
?>