Page 1 of 1

Multiple source files for PHP classes

Posted: Sun Mar 04, 2007 12:17 pm
by mjseaden
Hi,

I'm designing and implementing a series of PHP classes for my new site, some of which are beginning to get rather large and probably best sectioned off into separate source files.

It's easy to do this in C++, because you don't have to enclose both the declaration and implementation in the same source file, however I'm not sure you can do this in PHP.

Is there any way I can split the implementation of my class into different source files in a 'proper' way?

Many thanks

Posted: Sun Mar 04, 2007 1:35 pm
by volka
PHP class code is always inline. There's no splitting into headers and source as in C++ nor are there partial classes like in C#