PHP code example of codedruids / black-hole
1. Go to this page and download the library: Download codedruids/black-hole 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/ */
codedruids / black-hole example snippets
$test = new \CodeDruids\BlackHole("test");
$test->a = "b";
unset($test->c);
isset($test->d)
$test->e("f");
\CodeDruids\BlackHole::g("h")
var_dump($test);
echo $test;
$test();
if (env('APP_ENV') == 'production') {
class_alias('CodeDruids\BlackHole', 'Debug');
}
else {
class_alias('My\Clever\Debugger', 'Debug');
}
Debug::log('Profound silence');