1. is_number 数值型验证
if ($data) 与 if( $data != null) 不同 有0验证
2.数值的验证规范
0.0 先去空格 转码
$arr = array('%0A','%0D','+');
$data = urldecode(str_replace($arr, '', urlencode($data)));
//.正整数举例
if(preg_match("/^-?[1-9][0-9]*$/",$data)||$data=='0') //自然数
else
if($data != null) //注意此处不能为if($data)
else
3.构造函数里面调用构造函数 感受下report_associate思想
第一次foreach配置字段和block字段 拼接函数名和参数 参数中存在另一个函数名B,与b函数的参数param(数组或者一定格式字符串--explode)
第二次调用的函数b之前,先将其他参数拼接为原本的数据结构(高维数组),以此分情况来,并改变b的参数param
4.tableconfig 多sheet操作.
ps.自作聪明 donnt do that again! 老实认错