On 02/10/2007, Simetrical Simetrical+wikilist@gmail.com wrote:
We were never especially rigorous in following that. I'm not sure there's too much point in it for a language that only allows member variable access prefixed with the object's name anyway, though. In C++ it might be a good idea so you don't get locals mixed up with members, but the whole $this-> requirement makes that kind of pointless for PHP. At least AFAICT.
I believe the rationale was that prefixing member variables with "m" would make it a bit easier to spot a missing "$this", which would cause PHP to initialise a brand new variable without warning...
...then again, I don't follow this "convention" either.
Rob Church