Weakref::__constructConstructs a new weak reference Description
public Weakref::__construct
([ object
$object
] )Constructs a new weak reference. Parameters
Return ValuesNo value is returned. Examples
Example #1 Weakref::__construct example
<?phpThe above example will output:
Object still exists!
object(MyClass)#1 (0) {
}
Destroying object!
Object is dead!
|