• PHP Video Tutorials

PHP - Threaded::extend() Function



Threaded::extend - Runtime Manipulation.

Syntax

public bool Threaded::extend ( string $class )

Threaded::extend can make a thread-safe standard class at runtime.

Threaded::extend can return boolean indication on success.

Example

<?php
   class My { }
   Threaded::extend(My::class);

   $my = new My();
   var_dump($my instanceof Threaded);
?>
php_function_reference.htm
Advertisements