PHP - _extra_where, What Is This Underscore Mean?
Hi guys
As I'm learning the code of ION Auth. I encountered this Crazy but cool Method below, Code: [Select] public function extra_where() { $where =& func_get_args(); $this->_extra_where = count($where) == 1 ? $where[0] : array($where[0] => $where[1]); } The only thing that made me baffled here is the underscore infront of extra_where, here below, Code: [Select] $this->_extra_where I know I already known this before, but for some reason I forgot the purpose of this underscore. Perhaps I have alzhemer's? XD Anyone familiar? Similar TutorialsCan you use underscores in Class/Object names? This_Is_My_Class{ } this_is_my_object = new This_Is_My_Class(); TomTees I would like to know how to use an underscore in a define function like this example below. Code: [Select] /** The name of the database for WordPress */ define('DB_NAME', 'Database_name'); /** MySQL database username */ define('DB_USER', 'User_name'); /** MySQL database password */ define('DB_PASSWORD', 'password_here'); /** MySQL hostname */ define('DB_HOST', 'Dtabase_host'); Any help appreciated and thanks in advance. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=356719.0 |