- var_dump: documentation ( source)
<?php
class testing {
public function test ($varr = false, $count, &$array = array()){
if ($count > 2)
return 1;
$array[] = $this->test($count+1);
return $array;
}
}
$testme = new testing();
//var_dump($testme->test());
var_dump($testme->test(true));