how to know current working process id in php code example Example: get process id php getmypid ( ) : int