sneskid Posted August 2, 2006 Share Posted August 2, 2006 i've read that using the self keyword can have a drawback when classes inherit other.does using the 'this' keyword work around that?what is the main difference between the 2.thanks Link to comment https://forums.phpfreaks.com/topic/16289-this-vs-self/ Share on other sites More sharing options...
bilis_money Posted August 2, 2006 Share Posted August 2, 2006 this-> is for class //calling the function, variable inside a class only.while phpself //calling itself and not a class. Link to comment https://forums.phpfreaks.com/topic/16289-this-vs-self/#findComment-67631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.