note 105567 modified in language.namespaces.global by danbrown

From: Date: Mon, 29 Aug 2011 12:47:13 +0000
Subject: note 105567 modified in language.namespaces.global by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182805@lists.php.net to get a copy of this message
Included files will default to the global namespace. <?php //test.php namespace test { include 'test1.inc'; echo '-',__NAMESPACE__,'-<br />'; } ?> <?php //test1.inc echo '-',__NAMESPACE__,'-<br />'; ?> Results of test.php: -- -test- --was-- Included files will default to the global namespace. <? //test.php namespace test { include 'test1.inc'; echo '-',__NAMESPACE__,'-<br />'; } ?> <? //test1.inc echo '-',__NAMESPACE__,'-<br />'; ?> Results of test.php: -- -test- http://php.net/manual/en/language.namespaces.global.php

« previous php.notes (#182805) next »