Page 1 of 1

one underscore or 2?

Posted: Thu Mar 19, 2009 1:16 pm
by kbarrett2008
I'm seeing references to

_construct

and

__construct

which is it?

is it the same for destructors and accessors (_get or __get .. )?

again the book shows it both ways.

Re: one underscore or 2?

Posted: Thu Mar 19, 2009 1:39 pm
by Christopher

Re: one underscore or 2?

Posted: Thu Mar 19, 2009 2:29 pm
by kbarrett2008
"Magic" methods.... <chuckle>

interesting.

THANKS again!!
Ken