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