Weakref::__construct弱い参照を新しく作る 説明
public Weakref::__construct
( object
$object
)弱い参照を新しく作ります。 パラメータ
返り値値を返しません。 例
例1 Weakref::__construct の例
<?php上の例の出力は以下となります。
Object still exists!
object(MyClass)#1 (0) {
}
Destroying object!
Object is dead!
|