<?php class Cat { public function __construct($nameCat) { echo "This string from constructor " . $nameCat . "\n"; } public function __destruct(){ echo "I was destructing..."; } } $testObj = new Cat("Vasya"); unset($testObj);
You have javascript disabled. You will not be able to edit any code.