Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. MacBlanco:www guilhermeblanco$ cat test10.php
  2. <?php
  3.  
  4. namespace Foo {
  5. class Bar {
  6. public $woo;
  7. }
  8. }
  9.  
  10. namespace {
  11. $c = new ReflectionClass('\Foo\Bar');
  12. echo $c->getName() . PHP_EOL;
  13. }
  14. MacBlanco:www guilhermeblanco$ php -v
  15. PHP 5.3.0 (cli) (built: Jul 14 2009 10:16:19) (DEBUG)
  16. Copyright (c) 1997-2009 The PHP Group
  17. Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
  18. MacBlanco:www guilhermeblanco$ php -f test10.php
  19. Foo\Bar
  20. MacBlanco:www guilhermeblanco$
Add Comment
Please, Sign In to add comment