Re: underscore in php functions?

From: Date: Mon, 03 Aug 2009 20:46:00 +0000
Subject: Re: underscore in php functions?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-296242@lists.php.net to get a copy of this message
Stuart wrote: > 2009/8/3 Oral Timocin <o_timocin@gmx.de>: >> Hi all, >> >> i am a newbie to php an want to learn it. Aftere reading some sample Code >> an the documetation i have an unanswered question! >> >> for example: >> >> public function _example(){ >> } >> >> what does the _ mean in that function. Could anyone help me? > > Absolutely. But some developers use it as a convention for private > methods or some other indicator. > > -Stuart > Thank you for the answer. I have looked for the sample code again and you are right. Some of the marked funtions are protected and some are private. Now i have understand that. Thank you again. regards

« previous php.general (#296242) next »