• PHP Video Tutorials

PHP - Thread::start() Function



Thread::start - Execution

Syntax

public boolean Thread::start([ integer $options ] )

Thread::start() function can start a new thread to execute an implemented run method.

Thread::start() function can return a boolean indication of success.

Example

<?php
   class My extends Thread {
      public function run() {
         /** ... **/
      }
   }
   $my = new My();
   var_dump($my->start());
?>
php_function_reference.htm
Advertisements