PHP code example of pdeans / debuggers-vardumper

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

    

pdeans / debuggers-vardumper example snippets


use pdeans\Debuggers\Vardumper\Dumper;

$dumper = new Dumper();

$arr = [1,2,3];
$dumper->dump($arr);

// With label
$dumper->dump($arr, 'array values');

// With label and suppress the source output information (file:line number)
$dumper->dump($arr, 'array values', false);