Menu
The title doesn’t really do this question justice but what ever.
So say you have a class, and in once of the class’s functions, you make another class..
Doesn’t work because PHP doesn’t allow nesting classes, I got that part.
BUT if you make another PHP file with a class in it, and then include it into that function… How does PHP handle this? I know it allows it, but how does it parse the class? Does it put it at the top of the parent document, or does it make the class inside the function?
The reason I’m asking is I want the new class to access the parent class..
Any ideas?
Thanks,
Kyle