I am working on a rather large project (multiple teams) so I don’t have complete control over the code. Unfortunately, error_reporting is changed in many places throughout the code. When I get to a certain point in the code, I want to see what error reporting is currently set to. Is there anyway to accomplish this?
Share
http://www.php.net/error_reporting
int error_reporting ([ int $level ] )You could also use examples provided by the link in order to cast the level (which is returned as integer) into the string. For example:
use it as
echo error_level_tostring(error_reporting(), ',');