PHP Namespaces FAQ

PHP Namespaces FAQ,适合没耐心仔细阅读完整README.namespaces的人来看. Q. Why PHP needs namespaces? A. Because long names like PEAR_Form_Loader_Validate_Table_Element_Validator_Exception are really tiresome. Q. What is the main goal of the namespace implementation? A. To solve the problem above. Q. What “namespace X::Y::Z” means? A: 1. All class/function/method names are prefixed with X::Y::Z. 2. All class/function/method names are resolved first against […]