Posted by Snef on 10/06/06 21:55
e_matthes@hotmail.com wrote:
> I banged my head against the php wall for a while when I wrote my first
> simple OOP program in php; all because I was using one underscore when
> writing __construct rather than two! I am guessing this frustration
> happens all the time, and I couldn't believe the book I was using did
> not explicitly state this. Is there a reason it was specified with two
> underscores?
>
> Eric
>
Maybe because some people were using _xxx to emulate private properties/methods
when those where not available yet.
function _blaFoo() {}
Snef.
Navigation:
[Reply to this message]
|