Weakref::acquireAcquires a strong reference on that object Description
public bool Weakref::acquire
( void
)
Acquires a strong reference on that object, virtually turning the weak reference into a strong one. ParametersThis function has no parameters. Return Values
Returns Examples
Example #1 Weakref::acquire example
<?phpThe above example will output: Unsetting o1... Unsetting o2... Destroying object!
Example #2 Nested acquire/release example
<?phpThe above example will output:
Acquiring...
Unsetting...
Acquiring...
Acquiring...
Releasing...
Releasing...
Releasing...
Destroying object!
See Also
|