- var_dump: documentation ( source)
<?php
class A {
static $something = 'yes';
public static function doStuff($var = false) {
if($var) {
return 'no';
}
return $this->something;
}
}
var_dump(A::doStuff(false));
var_dump(A::doStuff(true));