When should I use 'self' over '$this'?
When should I use 'self' over '$this'?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/4682/casey-watson)Casey Watson |
(stackoverflow.com/users/3560/john-millikin)John Millikin |
(stackoverflow.com/users/145910/nbeagle)nbeagle |
(stackoverflow.com/users/199687/sqoo)Sqoo |
(stackoverflow.com/users/338665/ircmaxell)ircmaxell |
(stackoverflow.com/users/17440/zebra-north)Zebra North |
A special thanks goes out to the (https://stackoverflow.com/questions/151969/when-should-i-use-self-over-this)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
scope class oop php