-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
  • 42,438
  • 18
  • 116
  • 138
Jas
  • 188
  • 1
  • 3
  • 16

1 Answers1

-1

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

Pinetree
  • 617
  • 4
  • 7