1

I'm currently learning about errors in php, specifically track_errors runtime variable and the related $php_errormsg variable.

However, when I checked the documentation for $php_errormsg, it mentions that it is deprecated as of php 7.2.0

enter image description here

So is there any equivalent replacement that can be used in place of $php_errormsg?

4

1 回答 1

0

你可以使用这个:

echo error_get_last()['message'];
于 2021-12-21T14:49:03.790 回答