- var_dump: documentation ( source)
<?php
class Test {
public $string = 'Test String';
public function foo() {
echo 'foo' . PHP_EOL;
}
static function fooStatic() {
echo 'static' . PHP_EOL;
}
}
$a = new Test;
$b = clone $a;
$a->string = 'New Test String';
var_dump($b);