PHP Resources
Home
Books
Directories
Magazines
Non-English Sites
Online Communities
Tools
Tutorials and Articles
Web Hosting
PHP Functions
PHP News Groups *
PHP Reference
Smarty Reference
Pear Reference
PHP-GTK Reference

By submitting PHP Resources you own, or know of, you'll help us build the largest PHP Resource website on the net. Please double check that your resource doesn't already exist before you submit it!!. We thank you for helping make this a better website.









Resource Image Newest ResourcesPopular ResourcesTop Resources Resource Image
PHP Resources
PHP: __NAMESPACE__ - Manual

search for in the

Name resolution rules> <Global space
Last updated: Fri, 27 Jun 2008

view this page in

__NAMESPACE__

The compile-time constant __NAMESPACE__ is defined to the name of the current namespace. Outside namespace this constant has the value of empty string. This constant is useful when one needs to compose full name for local namespaced names.

Example #1 Using __NAMESPACE__

<?php
namespace A
::B::C;
         
function 
foo() {
// do stuff
}

set_error_handler(__NAMESPACE__ "::foo");
?>



add a note add a note User Contributed Notes
__NAMESPACE__
There are no user contributed notes for this page.

Name resolution rules> <Global space
Last updated: Fri, 27 Jun 2008
 
 




Featured




Featured
PHP Code Examples
web site templates
Learn PHP playing Trivia
PHP & MySQL Forums
Web Development Index

List Your ResourceUpdate Your Resource

Copyright © 2006 - 2008 MickMel Inc