rfc:spl-namespace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:spl-namespace [2008/07/21 14:56] – removed an unnecessary comment baptiste750 | rfc:spl-namespace [2008/07/21 15:23] – baptiste750 | ||
---|---|---|---|
Line 59: | Line 59: | ||
<code php> | <code php> | ||
- | spl_autoload_register(array('Foo1:: | + | spl_namespace(" |
+ | (...) | ||
+ | spl_autoload_register(array("Foo1:: | ||
// When Foo1:: | // When Foo1:: | ||
</ | </ | ||
+ | |||
+ | In the example above, every class succesfully autoloaded by '' | ||
==== Benefits ==== | ==== Benefits ==== | ||
Line 86: | Line 90: | ||
==== Drawbacks | ==== Drawbacks | ||
- | * ... | + | * If an autoloader, for a given classname, includes a different file depending on the value of a global variable, there' |
* ... | * ... |
rfc/spl-namespace.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1