Skip to content
Advertisement

What is the meaning of double underscore in PHP?

I have a PHP function from the Internet like this:

JavaScript

What is the meaning of $___kata and $_kata?

Is that the same as $kata on the top of function?

Advertisement

Answer

They are different variables. They aren’t related in any special way. $foo, $__foo__ and $__foo are all simply different variables like $a, $b, $c.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement