THREAD.GETCREATORID(3) 1 THREAD.GETCREATORID(3) Thread::getCreatorId - IdentificationSYNOPSISpublic integer Thread::getCreatorId (void )DESCRIPTIONWill return the identity of the Thread that created the referenced ThreadPARAMETERSThis function has no parameters.RETURN VALUESA numeric identityEXAMPLESExample #1 Return the identity of the Thread or Process that created the referenced Thread <?php class My extends Thread { public function run() { printf("%s created by Thread #%lu ", __CLASS__, $this->getCreatorId()); } } $my = new My(); $my->start(); ?> The above example will output: My created by Thread #123456778899 PHP Documentation Group THREAD.GETCREATORID(3)