1 :Invalid argument supplied for foreach()
循环的数组不是一个有效的数组
2:syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
在执行sql语句中数组形式的变量要写成:‘{}’这种形式;
3:syntax error, unexpected ....
一般是错误的上一行没有写分号;
4:Strict Standards: Declaration of Model::add() should be compatible with DB::add()
在PHP 大于5.4的版本中,使用了 PHP的严格模式 检查程序,检测结果为 Model模块中的 add()方法 必须兼容 父类DB类中 定义的add()方法,即 子类覆写父类的方法时 必须一致,包括 参数个数一致、参数如果没有值 则需要定义其默认值!
5:Only variables should be passed by reference
只有变量才能通过引用传递
6:Array to string conversion
参数必须是字符串,结果传的参数是数组