2
Reply

In PHP, what is the difference between self and $this. ?

saurabh  singh

saurabh singh

Mar 18, 2015
496
0

    http://www.programmerinterview.com/index.php/php-questions/php-self-vs-this/

    Munesh Sharma
    May 31, 2016
    0

    we can say that $this is used to reference the current object, whereas self is used to access the current class itself.

    saurabh singh
    March 18, 2015
    0