Re: Do we have PHP coding standard pratices?

From: Date: Mon, 24 Jul 2000 17:12:42 +0000
Subject: Re: Do we have PHP coding standard pratices?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-7932@lists.php.net to get a copy of this message
I personaly use for functions: my_very_fine_function(); for variables: var $myVeryFineVar; for classes (and class methods): same as for functions. for constants: MY_VERY_FINE_CONSTANT; Best regards Jesper Juhl Juhl@eisenstein.dk > The PEAR coding rules are great but I find that > myVeryFineMethod() is less readable than my_very_fine_method(). > Personally, I'm using : > class My_Class { > > var $my_var; // As my Variable > > function My_Class() { > // As a constructor > } > function my_method() [ > // As my Method > } > } > I don't see any use of distinguishing between methods names and > functions names. > Constants are ALL_IN_CAPS and that's it.

« previous php.general (#7932) next »