-3

I have encountered an instance where object properties look like this:

$this->property

and this:

$this->_property

What does the _ mean before ->? What difference does it make in terms of coding?

yivi
  • 1
  • 16
  • 86
  • 115
Jas
  • 170
  • 1
  • 3
  • 16

1 Answers1

-1

Usually it is used for reminding the variable/function is private.

Pinetree
  • 597
  • 3
  • 7