PHP code example of christophehurpeau / php-var-dump

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

    

christophehurpeau / php-var-dump example snippets


$formatter = new HtmlFormatter();
$varDump = new VarDump($this->formatter, 99);
echo '
<html style="margin:0; padding:0;">
    <body style="margin:0; padding:0;">
        <pre>' . $varDump->dump($data) . '</pre>
    </body>
</html>';