- var_dump: documentation ( source)
<?php
class A {
private $library;
public function test()
{
$this->library = 'library';
$selector = clone $this;
$selector->library = 'test';
var_dump($selector);
}
}
$a = new A;
$a->test();