このメソッドの一重引用符と二重引用符を理解するにはどうすればよいですか? ! ! ! ! ! !
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><?php defined('ACC')||exit('Access denied'); class userModel { protected $table = 'user'; protected $db = false; public function __construct() { $this->db = mysql::getIns(); } // 用户注册的方法 public function reg($arr) { $sql = "insert into ". $this->table . "(username,passwd,email) values ('" . $arr['username'] . "','" . $arr['passwd'] . "','" . $arr['email'] . "')"; return $this->db->query($sql); //print_r(mysql_error()); } }