08 2014 档案
摘要:1.MySQL字段规定类型之后,存储是定长的,int(1)和int(4)从本身长度还是存储方式上都是一样的。mysql里,int(1)和int(4)的区别就是显示的长度,但是要设置一个参数:如果列制定了zerofill 就会用0填充显示,如2 int(3)指定后就会显示为002。2.int 存储占4...
阅读全文
摘要:1、日期区间内的日期列表(天):1 public function dateExtent($begin,$end){2 $begin = strtotime($begin);3 $end = strtotime($end);4 ...
阅读全文
摘要:换行符unix系列用 \nwindows系列用 \r\nmac用 \rPHP中可以用PHP_EOL来替代,以提高代码的源代码级可移植性1 可以用函数get_defined_constants()来获取所有PHP常量1
阅读全文
摘要://php获取今日开始时间戳和结束时间戳$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));$endToday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;//php获取昨日起始时间戳和结...
阅读全文