RE: [PHP] Naming conventions
| From: | Dan Joseph | Date: | Fri, 01 Oct 2004 18:53:55 +0000 |
| Subject: | RE: [PHP] Naming conventions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198455@lists.php.net to get a copy of this message | ||
Hi,
> What do you use for your naming conventions for
> variables
> functions
> classes
>
> I'm trying to tell my students what the standard is currently. Are people
> using camel case or underscores or both?
I'm not sure there is a "standard" for naming things. Here's how I
do it...
classes: CHelloWorld { ... }
function: helloWorld() { .... }
vars: hello_world
I guess I tend to stick to the camel style for function or class naming,
then use underscores in vars. I also put a C before each class name. There
is Hungarian notation that a lot of developers like to use. You could
google that.
-Dan Joseph