PHP code example of liil / kint
1. Go to this page and download the library: Download liil/kint 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/ */
liil / kint example snippets
########## DUMP VARIABLE ###########################
Kint::dump($GLOBALS, $_SERVER); // any number of parameters
// or simply use d() as a shorthand:
d($_SERVER);
########## DEBUG BACKTRACE #########################
Kint::trace();
// or via shorthand:
d(1);
########## TEXT-ONLY OUTPUT ########################
s($GLOBALS);
########## MISCELLANEOUS ###########################
// to disable all output
Kint::enabled(false);
// further calls, this one