(PHP 4, PHP 5) is_int — 检测变量是否是整数 如果 var 是 integer 则返回 TRUE,否则返回 FALSE。 Note: 若想测试一个变量是否是数字或数字字符串(如表单输入,它们通常为字符串),必须使用 is_numeric()。 参见 is_bool()、is_float()、is_integer()、is_numeric()、is_string()、is_array() 和 is_object()。is_int
描述
bool is_int ( mixed $var )
is_int 检测变量是否是整数
-
mysql的yearweek 和 weekofyear函数
例如 2010-3-14 ,礼拜天 SELECT YEARWEEK('2010-3-14') 返回 11 SELECT YEARWEEK('2010-3-14',1) 返回 10 其中第二个参数是 mode ,具体指的意思如下: Mode First day of week Range Week 1 is the first week … 0 Sunday 0-53 with a Sunday in this year 1 Monday 0-53 with more than 3 days this year 2 Sunday 1-53 with a Sunday in this year 3 Monday 1-53 with more than 3 days this year 4 Sunday 0-53 with more than 3 days this year 5 Monday 0-53 with a Monday in this year 6 Sunday 1-53 with more than 3 days this year 7 Monday 1-53 with a Monday in this year 2.
-
MySQL DATE_FORMAT() 函数
DATE_FORMAT() 函数用于以不同的格式显示日期/时间数据。
-
Mysql数据库If语句的使用
MySQL的if既可以作为表达式用,也可在存储过程中作为流程控制语句使用,如下是做为表达式使用:
-
MySQL DATE_ADD() 函数
DATE_ADD() 函数向日期添加指定的时间间隔。
-
Java工具类之Apache的Commons Lang和BeanUtils
Apache Commons包估计是Java中使用最广发的工具包了,很多框架都依赖于这组工具包中的一部分,它提供了我们常用的一些编程需要,但是JDK没能提供的机能,最大化的减少重复代码的编写。
-
在java中和javascript中过滤掉类似于img形式的字符串,从而不显示图片
javascript过滤掉<img></img>和<img />形式的字符串,java代码过滤字符串中类似于<img></img>和<img />形式的字符串
-
javascript 进制转换(2进制、8进制、10进制、16进制之间的转换)
进制转换,2进制,8进制,10进制,16进制之间的转换
-
百万条数据快速查询优化技巧
百万条数据快速查询优化技巧参考 我为Net狂 所以的优化并不是绝对,具体得根据业务实际情况
-
NodeJS做一个小爬虫出现乱码问题
目标站点的编码是:GBK的,用NodeJS爬取的时候,出现乱码的情况?
-
安装bcrypt,node-sass报错node-gyp rebuild解决方法
npm install bcrypt,node-sass –save引起了让人很烦恼的错误,整个人心情都不好了。下边是个人的解决方法: