0

Is there any other way to reference the current object in php other than the usual $this ???

Thank you

p.s.: I was thinking of perhaps a hidden or shorthand form..

Felipe
  • 11,557
  • 7
  • 56
  • 103

2 Answers2

4

No : that's precisely what the special-pseudo-variable $this is for.

Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663
2

Sure:

$t = $this

                              

Shaz
  • 15,637
  • 3
  • 41
  • 59