Passing a lot of info from one class to another?
Posted: Sat Mar 19, 2011 12:50 pm
How can I pass my user class info to another class? I hear of this thing called inherit but never used it. I got a lot of user vars..
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
class Person {
public $name;
public $surname;
}
class Employee extends Person {
public $skill;
public $salary;
}