Skip to main content

Static Methods don't have any Object associated with them, hence there is no this$this reference available inside a static method. However you can declare your variable as static and use it directly without this$this reference.

Static Methods don't have any Object associated with them, hence there is no this reference available inside static method. However you can declare your variable as static and use it directly without this reference.

Static Methods don't have any Object associated with them, hence there is no $this reference available inside a static method. However you can declare your variable as static and use it directly without $this reference.

Source Link
Soumya
  • 310
  • 1
  • 8

Static Methods don't have any Object associated with them, hence there is no this reference available inside static method. However you can declare your variable as static and use it directly without this reference.