error_log()
function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool
Sends an error message to the log, a file, or an email address.
Parameters:
$message(string)$message_type(int), default0, optional$destination(?string), defaultnull, optional$additional_headers(?string), defaultnull, optional
Returns: bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Not available yet |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how error_log is implemented in the compiler, see the internals page.