Browse - Programming Tips - Is there a strict mode for php?

Date: 2017apr27
Language: php

Q.  Is there a strict mode for php?

A. You can do this:

error_reporting(E_STRICT);
I like to do this in all my php programs:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT);