PHP - Collectable Functions
Collectable interface
The Collectable was previously a class. Now, it's an interface in pthreads v3 that is implemented by Threaded class.
The Collectable interface can represent a garbage − collectable object.
Syntax
Collectable {
/* Methods */
public bool isGarbage( void )
public void setGarbage( void )
}
| Sr.No | Function & Description |
|---|---|
| 1 |
Function can determine whether an object has been marked as garbage. |
| 2 |
function can mark an object as garbage. |
php_function_reference.htm
Advertisements