PHP code example of martinlindhe / php-debughelper

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

    

martinlindhe / php-debughelper example snippets


use DebugHelper\HexPrinter;

echo HexPrinter::render("\xF0\xFF\x00");

use DebugHelper\BinaryPrinter;

echo BinaryPrinter::render("\xF0\xFF\x00");

use DebugHelper\Stopwatch;

$watch = new Stopwatch;
$watch->start();
// do some heavy lifting ...
$watch->stop();

echo $watch->getElapsedTime()." seconds elapsed\n";

composer