- var_dump: documentation ( source)
- error_reporting: documentation ( source)
- fopen: documentation ( source)
<?php
error_reporting(-1);
$resource = fopen('php://stdout', 'w');
// $callable = function() {};
$array = array(1,2,3);
class C
{
public function M(resource $r)
{
var_dump($r);
}
}
$c = new C();
var_dump($c->M($resource));