Strict mode in PHP
Kind of. You can activate the E_NOTICE level in your error reporting. (List of constants here.) Every instance of usage of an undeclared variable will throw an E_NOTICE. The E_STRICT error level will also throw those notices, as well as other hints on how to optimize your code. error_reporting(E_STRICT); Terminating the script If you are … Read more