|
Posted by Tony Marston on 08/06/06 09:36
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:CeadnchQ1dm-YEnZnZ2dnUVZ_rqdnZ2d@comcast.com...
> Tony Marston wrote:
>> "Shelly" <sheldonlg.news@asap-consult.com> wrote in message
>> news:m%QAg.4689$0e5.3702@newsread4.news.pas.earthlink.net...
>>
>>>"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote in message
>>>news:eavj9b$jkr$1$8300dec7@news.demon.co.uk...
>>>
>>>>Hands up all those programmers who would be happy working on a project
>>>>which had different functions called readfile(), readFile() and
>>>>ReadFile()
>>>
>>>My hand is up -- so long as the language had the idea of different
>>>scopes.
>>
>>
>> Which excludes PHP, and this *is* a PHP newsgroup in case you hadn't
>> noticed.
>>
>
> Nope, PHP has the concept of different scopes, also. Or haven't you
> figured that out yet? You can define constants and create your own
> classes, for instance. Entirely different contexts (and scopes)
Yes, but PHP does not require the use of case to tell the difference Take
the following:
foo - constant
$foo - variable
foo() - function
$object->foo() - class method
$object->foo - class method.
'foo' is allowed to exist as different 'things' and each reference clearly
identifies which one you want, and all without the use of different case.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
[Back to original message]
|