- var_dump: documentation ( source)
<?php
class Tools
{
public static $notify;
public function test()
{
var_dump(self::$notify, (boolean)self::$notify, !self::$notify);
}
}
$debug = true;
if ($debug) {
Tools::$notify = false;
}
$tools = new Tools;
$tools->test();