1. Home
  2. Docs
  3. PHP Style Guide
  4. Private Methods and Variables

Private Methods and Variables

Methods and variables that are only accessed internally, such as utility and helper functions that your public methods use for code abstraction, should be prefixed with an underscore.

Was this article helpful to you? Yes No

How can we help?