- var_dump: documentation ( source)
<?php
class cm404 {
public $str = '';
function init() {
if (isset($GLOBAL['ryat'])) {
exit('hi');
}
unset($GLOBAL['hi']);
}
function __destruct() {
global $obj;
// if(!is_object($obj)) {
// $obj = new cm404();
// }
echo "hi, $GLOBAL[hi]\n";
var_dump($obj);
}
}
function _get() {
// var_dump($obj);
}
//$_GET['ryat'] = 1;
$hi = 'ryat';
$obj = new cm404();
$obj->init();
$hi = 'cm404';