1

Is there a Threading module in Python equivalent in PHP? My code in Python would look something like

from Treading import thread

def somefunction():
    print("function")

t = Thread(target = somefunction)        
t.start()

Is there a way to convert code like this to PHP, if so, how? Thanks.

  • Thread support in php is limited, then again threading in web apps has limited use - often a job queue system is a better solution – Steve Nov 20 '15 at 12:09

1 Answers1

0

There is. PHP has pthreads. As for how similar or how easy it is to convert your Python code using that, remains unclear.

Sherif
  • 11,786
  • 3
  • 32
  • 57