<?php class Test{ public $n; function __construct($num) { $this->n = 3 * $num; var_dump($this); } } $t = new Test(4); echo $t->n;
You have javascript disabled. You will not be able to edit any code.