PHP.nl

$php_errormsg

$php_errormsg

The previous error message

Use instead. error_get_last

is a variable containing the

text of the last error message generated by PHP. This variable will only be available within the scope in which the error occurred, and only if the configuration option is turned on (it defaults to off). $php_errormsgtrack_errors

Waarschuwing: > If a user defined error handler () is set is only set if the error handler returns false. set_error_handler``$php_errormsg

Voorbeeld: example

<?php
@strpos();
echo $php_errormsg;
?>
Wrong parameter count for strpos()

error_get_last

Documentatie