Why do some people call their functions, for example. '__makethis ()' and '_makethat ()'?
Is this some kind of feature or is it just in fashion?
thanks for your answers;)
Double underlining can sometimes be magic functions used by PHP classes.
A single underline can be part of your own naming conventions for functions. But usually this means that the function is private, back in PHP4 classes do not support private (or protected) functions, so people fake a private function this way (the function is not private in reality).
This convention is for naming private and protected methods.
Typically, private class members are assigned the symbol "_". Check out the PEAR code.
Magic class methods are prefixed with __. I suggest, if you write a method that does some magic, prefix it with __.