- print_r: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(-1);
function load($test) {
$logger->log[] = array('load', __FILE__, $test);
return new $test();
}
class foo {}
$result = load('foo');
print_r($result);