Re: [PHP] underscore in php functions?
On Mon, 2009-08-03 at 22:46 +0200, Oral Timocin wrote: > Stuart wrote: > > > 2009/8/3 Oral Timocin : > >> 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 > Also, there are some special cases, like the __construct() function, which use a double underscore, and have a special meaning for classes. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] underscore in php functions?
Stuart wrote: > 2009/8/3 Oral Timocin : >> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] underscore in php functions?
2009/8/3 Oral Timocin : > 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 -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] underscore in php functions?
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? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php