我看到人们在变量之前使用下划线,即使他们使用关键字protected例如
class Administration extends Backend_Controller {
    protected $_mdl = 'model_comments';
    function __construct()
    {
         parent::__construct();
         $mdl = $this->_mdl;
         $this->load->model($mdl);
    }
    ...
}
如果我protected在变量之前使用,是否需要下划线?
$_mdl在 mdl like:而不是 just之前使用下划线有什么好处$mdl?
我在这个“安全”问题上不是很好,所以任何解释都值得赞赏。