- var_dump: documentation ( source)
<?php
$showError = false;
class SomeClass {
function SomeFunction($foo) {
}
}
$foo[] = 'SomeClass';
$foo[] = 'SomeFunction';
var_dump($foo);
if ($showError == true) {
$bar[] = 'SomeClass';
$bar[] = &$foo[1];
}
$reflection = new ReflectionParameter($foo, 'foo');
if ($showError) {
//$reflection = new ReflectionParameter($bar, 'foo');
}