Join WhatsApp ChannelJoin Now

Error_reporting Method PHP Example

Hi,

Today, i we will show you error_reporting method PHP example. This article will give you simple example of error_reporting method PHP example. you will learn error_reporting method PHP example. So let’s follow few step to create example of error_reporting method PHP example.

Example :

<?php
    // disable all error reporting
    error_reporting(0);

    // simple running errors
    error_reporting(E_ERROR | E_WARNING | E_PARSE);

    // all errors except E_NOTICE
    error_reporting(E_ALL & ~E_NOTICE);

    // all PHP errors
    error_reporting(E_ALL);

    // all PHP errors
    error_reporting(-1);

    //  as error_reporting(E_ALL);
    ini_set('error_reporting', E_ALL);
?>

I hope it will assist you…

Recommended Posts