What underlines the function value in php?

Possible duplicate:
What is the deal with leading underscores in PHP class methods?

I think this is pretty descriptive ... what does it mean if you see a function starting with underscore in php? I have seen this many times, and I still don’t know what it is! It still works, but it looks weird, starting with an underscore, and I suspect it's just an agreement, but I don't know what it is. I'm not talking about double underlined functions (i.e. __construct ()), but in one underscore.

My best guess is that it means your own unique function, and you want others to know about it?

+3
source share
2 answers

, "private" "" .

, private protected, , . , , "" , , .

+9

, , , ( ) , , .

. , , , , . private, - .

+4

All Articles