getmypid()
function getmypid(): int
Gets the PHP process ID.
Parameters: none.
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/network_env/getmypid.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how getmypid is implemented in the compiler, see the internals page.