how to handle error in php.ini not to show error during production phase of the project code example
Example 1: show php errors
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Example 2: echo errors php
<?php error_reporting(E_ALL); ?>