PHP code example of morgo / dumpf

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

    

morgo / dumpf example snippets


Morgo\Dumpf::dump($x, $y);

Morgo\DumpfPair::dump('label_for_x', $x)

$var1 = "Some string";
$var2 = 2 * 5;
_d($var1, $var2);
_dp("String", $var1, "Number", $var2);

string (11): Some string
integer: 10
String = string (11): Some string
Number = integer: 10