Re: underscore in php functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-08-03 at 22:46 +0200, Oral Timocin wrote:
> Stuart wrote:
> 
> > 2009/8/3 Oral Timocin <o_timocin@xxxxxx>:
> >> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux