KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have been searching websites to try and get a handle on using PHP namespaces, but they all seem quite vague but what they're trying to do is easy to understand! My question is: I have a file called people.php and in it is defined class called people . If I create another file called managers.php in the same folder can I define a class again called people which extends the original people class but in the namespace of managers , if so do I have to 'include' the original people.php and if so do I put the include after the writing: namespace managers ?
Tags (comma-separated)
Save Edits
Cancel