LemonInflux Posted April 26, 2008 Share Posted April 26, 2008 Normally, I'd have tested this, but I'm currently on the move and have no way of testing my PHP. If in OOP, class b extends class a, to call a function in class a from class b, do use use $this->classAfunction, or something like $parent->classAfunction? I know it can be done with the scope resolution operator, but I'm trying to keep it to variables Thanks in advance, Tom Quote Link to comment https://forums.phpfreaks.com/topic/103025-solved-very-simple-oop-question/ Share on other sites More sharing options...
wildteen88 Posted April 26, 2008 Share Posted April 26, 2008 You'd use $this->classAFunction Quote Link to comment https://forums.phpfreaks.com/topic/103025-solved-very-simple-oop-question/#findComment-527727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.