PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Regeln der Namensauflösung> <Der globale Namensraum
Last updated: Fri, 14 Nov 2008

view this page in

__NAMESPACE__

Die zur Kompilationszeit gültige Konstante __NAMESPACE__ wird mit dem Namen des aktuellen Namensraumes ersetzt. Außerhalb eines Namensraumes ist der Wert dieser Konstante der leere String ''. Diese Konstante ist hilfreich, um innerhalb eines Namensraumes den vollständigen Namen aus einem lokalen Namen zu konstruieren.

Beispiel #1 Nutzung von __NAMESPACE__

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

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



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

Regeln der Namensauflösung> <Der globale Namensraum
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites