Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP __ (double underscore) means anything?

7:15 pm on Aug 21, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 17, 2003
votes: 0

I open up some open source PHP codes, even I have been coding for sometime, but I am confused to see them using __ (double underscore)

What does it do?

7:19 am on Aug 22, 2005 (gmt 0)

New User

joined:Feb 2, 2005
votes: 0

Well, it depends where double underscore is being used?

Some coders use underscore to identify some types of variables: $__constant, $simplevariable.

PHP itself has some use double underscore and usualy it means some *extra* or *magic* functionality:


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members