PHP code example of grandt / phpdebugtools

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

    

grandt / phpdebugtools example snippets


    $block = HexBlock::createBlock($handle, $length, $encodeHtml [Default = true]);

    $block = HexBlock::createBlock($dataString, $length, $encodeHtml [Default = true]);

    $fh = DebugHelpers::str2resource($stringData);
    // work
    fclose($fh); // Remember to close the handle to free up memory.


     .
    .

     use grandt\DebugTools;

    $srcFile = "[path to file]";

    $fh = fopen($srcFile, "rb");
    echo HexBlock::createBlock($fh, 68, true);
    fclose($fh);

php -r "readfile('https://getcomposer.org/installer');" | php

php composer.phar install