Re: [PHP] namespace equivalent in PHP

2007-03-12 Thread Richard Lynch
On Wed, March 7, 2007 8:03 am, Alain Roger wrote: > Coming from C++ world, i would like to know what in PHP, is the > equivalent > of namespace in C++ ? Nothing. Closest we have is wrapping yet another class around everything. PHP is a "simple" language, on purpose. C++ is a lot of things, but

Re: [PHP] namespace equivalent in PHP

2007-03-07 Thread Jochem Maas
Alain Roger wrote: > Hi, > > Coming from C++ world, i would like to know what in PHP, is the equivalent > of namespace in C++ ? the closest you get to a namespace is a class (used purely as a static place holder for a set of functions, constants & variables). namespaces is on the php dev list of

[PHP] namespace equivalent in PHP

2007-03-07 Thread Alain Roger
Hi, Coming from C++ world, i would like to know what in PHP, is the equivalent of namespace in C++ ? I have several class which should work together, or Class B which is used to create a private property of class A. How can i do that without including the class B into the class A definition ? t