From: Arlo L. <ar...@ar...> - 2009-09-02 08:15:42
|
Hi folks, I guess my last question stumped you! Or confused you. Or you're all on vacation this week. Anyway, here's another one. Does anyone think this kind of notation is crazy? $Profile = new Profile(); // object variable starts with uppercase I've been running into some trouble where I assign an object to a variable, but then I want to use the same variable for a local value, and I'd like a standardized way to keep object variables separate. But I don't want to do something that another developer would find unintuitive or annoying if they had to work with my code. I've also considered something like this: $objects["profile"] = new Profile(); // all object variables are collected in an array But that's a lot slower to type. Thanks, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |