- var_dump: documentation ( source)
<?php
namespace Foo {
class Bar {}
}
namespace Other {
use Foo\Bar as FooBar;
class Baz {
function test($instance) {
var_dump($instance instanceof FooBar);
}
}
$other = new Baz;
$other->test(new \Foo\Bar);
}