Re: Re[2]: [PHP] Do you have some standard for defined the variable in program language?
| From: | Joshua Kehn | Date: | Tue, 27 Jul 2010 17:02:38 +0000 |
| Subject: | Re: Re[2]: [PHP] Do you have some standard for defined the variable in program language? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307180@lists.php.net to get a copy of this message | ||
Tedd-
Java has classes listed with an Uppercase. It could be JS you're thinking of but I'm not
sure. Functions (except constructors) and variables have the lowerUpperCamelCase notation.
Regards,
-Josh
On Jul 27, 2010, at 12:55 PM, tedd wrote:
> At 1:38 PM +0300 7/27/10, Andre Polykanine wrote:
>> Hello viraj,
>>
>> As for classes, it's suggested to start a class name with a capital:
>> class MyBestClass {
>> ...
>> }
>
> In some languages (I can't remember if it is Java, or Javascript, or both) the first
> letter should be lowercase, such as:
>
> myBestClass
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com
> http://ancientstones.com
> http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>