Following Pear Coding Standards:
_ before private methods or just for private properties?methodName or method_name for methods?public $fooBar or public $foo_bar?Thank you.
Should I use
_before private methods or just for private properties?
Use _ before all private member names. This includes properties and methods.
Should I use
methodNameormethod_namefor methods?
Use camel case (that means methodName).
Should I use "public $fooBar" or "public $foo_bar" ?
Separate words with underscores (that means $foo_bar).
Some of these are mentioned in the Class Variables and Methods section of the PEAR naming conventions document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With