PHP code example of cronfy / debug

1. Go to this page and download the library: Download cronfy/debug 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/ */

    

cronfy / debug example snippets


D([1, 2, 'foo', 'bar']);

D([1, 2, 'foo', 'bar'], 1);

function D($var = null, $vardump = null)
{
    call_user_func_array('\cronfy\debug\Debug::D', [$var, $vardump, (PHP_VERSION_ID >= 70000) ? 1 : 2]);
}

\cronfy\debug\Debug::$debug = true;

Debug in /app/www/index.php line 7 (start) 
array(4) { [0]=> int(1) [1]=> int(2) [2]=> string(3) "foo" [3]=> string(3) "bar" } 
Debug in /app/www/index.php line 7 (end)