- 博客(3)
- 收藏
- 关注
原创 php判断整数
1、变量是数字,直接is_int()判断变量是否是整数。 <?php $num=1; if(is_int($num)){ echo "int"; }else{ echo "not int"; } ?> 2、变量是数字字符串(如表单输入,通常为字符串),不能用is_int()函数来判断是否为整数。 可通过floor()方法,将传入的参数进行四舍五入,将四舍或者五入后的值与原来的值比较,若相等则为整数,不等则不为整数。 <?php $num=1; if(f.
2021-10-25 16:30:10 704
原创 CentOS7解决google-chrome无法启动
问题表现: 双击Google Chrome图标无反应,无法打开浏览器。 查看报错: [root@XXXXX]#/usr/bin/google-chrome[5024:5024:0113/164154.164753:ERROR:zygote_host_impl_linux.cc(89)]Running as root without --no-sandbox is not supported.See https://crbug.com/638180. 解决方法: 1.[root@XXXX...
2021-09-18 20:24:58 1592
原创 PHP+Mysql实现多关键词搜索及分页
<!-- Version.2 It can realize multi keyword (ID, position) search, paging, position input, judgment rounding, and pay attention to modifying the database connection conditions --> <!DOCTYPE html> <html> <head> </head> <.
2021-09-16 19:56:59 275
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人