I'm currently working on a PHP project and I have a question regarding function and variable naming conventions. I want to make sure I follow best practices and choose meaningful and appropriate names for my functions and variables.
I understand that good naming conventions make code more readable and maintainable. However, I'm not exactly sure what guidelines to follow when it comes to naming. Should function names be in camel case or snake case? How about variable names? Should they describe the purpose of the function/variable or should they be more concise and generic?
Additionally, I would like to know if there are any specific naming conventions for certain types of functions or variables. For example, is there a recommended way to name getters and setters, or functions that perform database queries?
I want to adopt a consistent naming convention throughout my project, so any advice or recommendations on this topic would be highly appreciated. Feel free to share your own experiences and any coding standards or conventions you follow. Thank you in advance for your help!