PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

what is meant by naming conventions in PHP?

Asked 2010-03-08 04:38:58 by vignesh w

any budy answer this question please...

Anwered 2010-03-08 14:42:09 by DzSoundNirvana

simply talking about the way you name your variables, functions, classes, and objects.

If you are writing a script about cars then you would want to name your objects etc. relative to vehicles and not name them about fish or something.
This will help you remember what you are trying to do and make it easier to troubleshoot if you run into any bugs.

Anwered 2010-03-08 04:52:32 by Tharaka Deshan

naming conventions is not only in PHP.
Naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types and functions etc. in both source code and documentation

It has following advantages
* reduce the effort needed to read and understand source code
* enhance source code appearance

However I cant write everything about naming conventions here.So i put two great sites to refer.
Think they will help you.

http://pear.php.net/manual/en/standards.naming.php
http://www.dagbladet.no/development/phpcodingstandard/

Questions and answers provided by the Yahoo Answers Community.