error_log()
function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool
Implemented by the compiler-injected web prelude.
Parameters:
$message(string)$message_type(int), default0, optional$destination(?string), defaultnull, optional$additional_headers(?string), defaultnull, optional
Returns: bool
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): not available inside eval’d code.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how error_log is implemented in the compiler, see the internals page.