I have this situation :
class User extends Database {
public function validateLogin ($email, $password) {
// some code here
}
}
class General {
public function encryptData ($data) {
// some code here
}
}
$password from validateLogin needs to be encrypted using encryptData function from class General, the problem is class User already extends / inherit class Database and PHP doesn't support multiple inheritance, right? how to solve this situation?
thank you