Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MacBlanco:www guilhermeblanco$ cat test10.php
- <?php
- namespace Foo {
- class Bar {
- public $woo;
- }
- }
- namespace {
- $c = new ReflectionClass('\Foo\Bar');
- echo $c->getName() . PHP_EOL;
- }
- MacBlanco:www guilhermeblanco$ php -v
- PHP 5.3.0 (cli) (built: Jul 14 2009 10:16:19) (DEBUG)
- Copyright (c) 1997-2009 The PHP Group
- Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
- MacBlanco:www guilhermeblanco$ php -f test10.php
- Foo\Bar
- MacBlanco:www guilhermeblanco$
Add Comment
Please, Sign In to add comment