Hueta
Php
code posted
created at 09 Mar 16:32, updated at 29 Mar 09:55
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php class MyDestructableClass { function __construct() { print "In constructor\n"; $this->name = "MyDestructableClass"; } function __destruct() { print "Destroying " . $this->name . "\n"; } } $obj = new MyDestructableClass(); ?> |
271 Bytes in 2 ms with coderay