| 
 
update : 2015.11.03
 
php.shukuma.com검색:
  
 | 
namespace keyword and __NAMESPACE__ constant(PHP 5 >= 5.3.0) 
   PHP supports two ways of abstractly accessing elements within the current namespace,
   the  
   The value of  Example #1 __NAMESPACE__ example, namespaced code 
<?phpExample #2 __NAMESPACE__ example, global code 
<?php__NAMESPACE__ constant is useful for dynamically constructing
   names, for instance:
   Example #3 using __NAMESPACE__ for dynamic name construction 
<?phpThe namespace keyword can be used to explicitly request an element from the current namespace or a sub-namespace. It is the namespace equivalent of the self operator for classes. Example #4 the namespace operator, inside a namespace 
<?phpExample #5 the namespace operator, in global code 
<?php |