Disabling Strict Standards in PHP 5.4

To disable strict standards in PHP 5.4, you can add the following line of code to your PHP script:

error_reporting(E_ALL & ~E_STRICT);

This line sets the error reporting level to show all errors except for strict standards errors.

Watch a course Learn object oriented PHP

Alternatively, you can add the following line in your php.ini file:

error_reporting = E_ALL & ~E_STRICT

This will disable strict standards for all PHP scripts on the server.

Please note that disabling strict standards is not a recommended practice, as it can hide important issues in your code that can lead to unexpected behavior or security vulnerabilities.