- var_dump: documentation ( source)
<?php
/**
* This is fucking stupid
*/
abstract class ConfusingClass{
/**
* Private property
*/
private $property = 'fucking stupid';
/**
* Why does this keep happening?
*
* @bullshit true
*/
private function bullshit() {
return false;
}
public function derp() {
echo "test: ",
$this->bullshit(),
"\n";
}
}
class ConfusedBullshit extends ConfusingClass {
private function bullshit() {
return $this->property;
}
public function derp() {
echo "test: ",
$this->bullshit(),
"\n";
}
}
$f = new ConfusedBullshit;
$f->derp();
$d = new ReflectionClass('ConfusedBullshit');
var_dump($d);
var_dump($d->getProperties());