- var_dump: documentation ( source)
<?php
namespace Something;
class X{}
class Y{}
class Z{}
namespace Somewhere;
use Something;
class A
{
public $x;
public function __construct()
{
$this->x = new Something\X();
}
}
$a = new A();
var_dump($a->x);