Is There a Threading module in Python Equivalent in PHP
Question: 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.


Answer: There is. PHP has [`pthreads`](http://php.net/pthreads). As for how similar or
how easy it is to convert your Python code using that, remains unclear.

