Miscellany
public text v1 · immutable<?php
Class A {
private $id;
function __construct ($id) {
$this->id = $id;
}
function __destruct () {
echo __CLASS__ . $this->id . getcwd() . ' -- ';
}
}
Class B {
function __construct () {
$local = new A(':local:');
$GLOBALS['A'] = new A(':GLOBAL:');
}
}
new B();
?>