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 Quote Link to comment 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. Quote Link to comment 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.