saurabh  singh
In PHP, what is the difference between self and $this. ?
By saurabh singh in PHP on Mar 18 2015
  • Anant Singh
    Apr, 2019 11

    $this-> and self also use in class but Use self we can call member static function.

    • 1
  • Munesh Sharma
    May, 2016 31

    • 1
  • saurabh  singh
    Mar, 2015 18

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

    • 0

Most Popular Job Functions