Re: Universaly Accepted Naming Conventions..?
| From: | Richard Lynch | Date: | Fri, 07 Mar 2008 15:20:42 +0000 |
| Subject: | Re: Universaly Accepted Naming Conventions..? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271126@lists.php.net to get a copy of this message | ||
On Wed, March 5, 2008 1:06 pm, John Papas wrote
> Are there any in PHP?
>
> It seems like there are those that draw upon the C/unix naming
> conventions and those that follow the Java/OO style.
There are several popular "standards" out there.
The PEAR coding standard and the Zend one tend to get mentioned a lot.
The most important thing is to be consistent yourself, rather than to
follow a specific standard.
Anybody halfway decent can follow what you did if you are consistent.
> Even PHP's native syntax (like function names pre/post v5) are not
> consistent.
They ARE consistent with the underlying libraries, which is more
important, really, because that means you don't have to waste hours
figuring out what PHP did to shoe-horn the other library's functions
into some other system.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?