- var_dump: documentation ( source)
<?php
class foo
{
public function getUserEntityClass()
{
return 'apa';
}
}
class apa
{
public function bar()
{
echo "is here";
}
}
var_dump(new ((new foo())->getUserEntityClass()));
//$test = new ());
$test->bar();