Aloha
I just started programming in PHP recently and had a basic naming question. I read a lot of PHP coding standards after reading this post . This made sense to me, as I already prefer to use camelCase when naming variables. Since I'm going to work with MySQL, I also read the database naming conventions. There are many different preferences, but it seems that as long as you agree, everything is in order. However, one thing that I thought I noticed was that most database naming conventions talk about the beginning of attributes with an uppercase letter, whereas in PHP (as in most programs) variables should start with lowercase letters. I am going to use the MVC model with DAO and VOs. I really want my VOs to reflect my database tables, but the shell of the first letter is inconsistent. Should I leave the housing incorrectly matched or change one so that they are the same? How do you do this?
Thanks in advance,
Frank
php mysql naming-conventions
Letanc
source share