- var_dump: documentation ( source)
<?php
class A
{
public function __get($n)
{
var_dump("__get");
return 1;
}
public function __set($n, $v)
{
var_dump("__set");
}
}
$a = new A;
$a->q = "";
$a->q += 12;