I just don't get it. Why create one class, eg
PHP Code: 
class user{
function 
login(){
//login stuff
}

then use the extends keyword like so
PHP Code: 
class admin extends user{
function 
admin(){
//admin stuff
}

Why not just put it in one big class and only call the admin function for when they are needed?
timtamboy63 Reviewed by timtamboy63 on . What is the point of the php extends in relation to classes? I just don't get it. Why create one class, eg class user{ function login(){ //login stuff } } then use the extends keyword like so Rating: 5