View Single Post
Old 12-09-2008, 11:13 PM   #4 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I do love it, as Salathe said. However, I do have exceptions, such as like accessing variables from outside of a class, like they do in Zend, I prefer $pObject->name to $pObject->szName, although I would prefer to use $pObject->getName().

I do use the m_ format, however, for class variables. You're right in that it should be obvious anyway, and I can't think of any examples, but it's merely down to personal preference. It is a member variable, and so it's labelled as one, as well as its prefix for its actual type.

Many people when posting code on TalkPHP seem to have adopted the Hungarian Notation style. I am not sure why, hopefully it seems logical to some people and helps them. Other people, such as like Salathe, use it cause many people on TalkPHP seem to, I would assume.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote