ask9 Posted January 24, 2011 Share Posted January 24, 2011 Hi guys As I'm learning the code of ION Auth. I encountered this Crazy but cool Method below, 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, $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? Quote Link to comment https://forums.phpfreaks.com/topic/225479-_extra_where-what-is-this-underscore-mean/ Share on other sites More sharing options...
trq Posted January 24, 2011 Share Posted January 24, 2011 The underscore has no special meaning. Some people however (including myself) name private properties & methods starting with an underscore just to make them easier to see. Quote Link to comment https://forums.phpfreaks.com/topic/225479-_extra_where-what-is-this-underscore-mean/#findComment-1164331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.