Naming conventions

From: Date: Thu, 25 May 2000 01:37:06 +0000
Subject: Naming conventions
Groups: php.general 
Request: Send a blank email to php-general+get-500@lists.php.net to get a copy of this message
Are there any established standard naming conventions for variables, classes, etc., in PHP programs? If so, can someone point me to a description. Things that I want to get right first time include: filenames - .php or .php3 for scripts? .php or .inc for included scripts? variable names - myvar, myVar, MyVar, my_var? capitalisation, word separators, whether to distinguish between locals and globals, notionally public and private class members, functions and variables, etc. class names - ditto Also, are there established standards for program layout and comment style? -- Matthew Kendall

« previous php.general (#500) next »