- var_dump: documentation ( source)
<?php
class Foo {
private $money;
function __construct($money) {
$this->money = $money;
}
function getMoney() {
return $this->money;
}
}
$foo = new Foo(1234);
var_dump($foo->getMoney());