Having come from Java, the common naming convention developers use is the camelback notation, e.g. firstName, companyName, etc.
I'm going through a PHP book right now, and I notice that the author uses all lower case, multiple words being delineated by an underscore, e.g. first_name, company_name, etc.
I'm actually transitioning from Java to PHP, and I'm just curious. What is the MOST common variable naming convention PHP developers use, if there is one?
Only people who are working as PHP developers should respond, please.
Thanks.
As a Java developer, I've worked in places where camelback was stringently mandated, and any deviation (e.g. Hungarian notation or php-style-lower-case) was frowned upon and would get you a scolding.
Can anyone tell me what their employers prefer/require them to use as far as variable-naming?