PHP code example of dan-da / strictmode-php

1. Go to this page and download the library: Download dan-da/strictmode-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dan-da / strictmode-php example snippets



e( 'strictmode\ALERTS_MAILTO', '[email protected]' );
...

echo HELLO;   // this will generate a PHP notice.

Uncaught Exception. code: 8, message: Use of undefined constant HELLO - assumed 'HELLO'
/home/danda/dev/strictmode-php/t.php : 7

Stack Trace:
#0 /home/danda/dev/strictmode-php/t.php(7): strictmode\_global_error_handler(8, 'Use of undefine...', '/home/danda/dev...', 7, Array)
#1 {main}

INFO: alert sent to [email protected]


Now exiting.  Please report this problem to the software author

PHP Notice:  Use of undefined constant HELLO - assumed 'HELLO' in /home/danda/dev/strictmode-php/t.php on line 7
HELLO


e( 'strictmode\ALERTS_MAILTO', '[email protected]' );
\strictmode\initializer::init();

// your app code...