PHP5 namespace question

From: Date: Fri, 13 Jun 2003 22:29:17 +0000
Subject: PHP5 namespace question
Groups: php.internals 
Request: Send a blank email to internals+get-2319@lists.php.net to get a copy of this message
Howdy, I was curious if it is possible to have an include work inside of a namespace for php5, and have classes/functions/defines that are declared in the included file become part of the namespace? This is usefull for large library projects, where it would be combersome for obvious reasons to have all classes/functions/defines to exist in the same file, just to make it part of the namespace. namespace mylib { include_once("my_foo_classes.php"); include_once("my_bar_classes.php"); include_once("my_blah_classes.php"); include_once("my_foo_functions.php"); } Walt

« previous php.internals (#2319) next »