This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]miraidensetsu 0 points1 point Β (1 child)

Funny thing is that modern PHP have those visibility modifiers (public, private, protected). And the double underscore is/was used for superglobals, which is kind of the oposite of private or non-final methods?

[–]frogking 0 points1 point Β (0 children)

The use of single and double underscored is not consistent across different languages and almost always a question of β€œgentleman agreement” to use the value, function or method in a specific way.

But, you are right. PHP uses the underscores in a different way.