Re: Do you have some standard for defined the variable in program language?

From: Date: Tue, 27 Jul 2010 09:50:23 +0000
Subject: Re: Do you have some standard for defined the variable in program language?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-307153@lists.php.net to get a copy of this message
On 27/07/10 10:42, viraj wrote:
$firstName is the most readable.. for variables. does anybody have negative thoughts on using the same naming format for method/function and for class names? i guess it's worth sharing! many thanks! ~viraj
I like to use $firstName, and function firstName(), but I would use class FirstName. Somehow in my mind, classes are important enough to earn the initial capital letter. -- Peter Ford, Developer phone: 01580 893333 fax: 01580 893399 Justcroft International Ltd. www.justcroft.com Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom Registered in England and Wales: 2297906 Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS

« previous php.general (#307153) next »