class Shape
{
public function __construct() {
$this->var = 5;
}
}
$circle = new Shape();
var_dump($circle->var);
class Shape
{
public $var; // ??
public function __construct() {
$this->var = 5;
}
}
$circle = new Shape();
var_dump($circle->var);