- ini_set: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
class Kitchen
{
private $value = 'cheese';
}
$k = new Kitchen();
$m = function(){
echo 'called me. Value is ' . $this->value;
};
Closure::bind($m, null, $kitchen);
$k->m();