From: Arlo L. <ar...@ar...> - 2009-09-02 19:03:31
|
Hi Andy, > both names are in upper case. In the second example you gave: > > $profile = new Profile() > > they have different case so it should work. Oh, the conflict isn't between the variable and the class name, but between the variable that I assign the object instance to and a regular variable I might have already created with the same name. All my class names start with uppercase; that's in 100% of the style guides I've seen, so I went with that. It's just the local variables I'm thinking about now. Basically now that I've introduced objects into my programming, I'm dealing with a new set of variables in each script, and I need to expand my naming standards to accommodate them. Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |