You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
519 B

3 years ago
  1. <?php
  2. namespace A{
  3. $num=1;
  4. function fnA(){
  5. echo __FUNCTION__.PHP_EOL;
  6. }
  7. const constA="HELLO";
  8. class ClassA{
  9. public $num=2;
  10. public function fnA()
  11. {
  12. echo __FUNCTION__.PHP_EOL;
  13. }
  14. }
  15. }
  16. namespace A\B{
  17. $num=1;
  18. function fnA(){
  19. echo __FUNCTION__.PHP_EOL;
  20. }
  21. const constA="HELLO";
  22. class ClassA{
  23. public $num=2;
  24. public function fnA()
  25. {
  26. echo __FUNCTION__.PHP_EOL;
  27. }
  28. }
  29. }
  30. ?>