ip 转int int 与float

摘要: $ipArr = explode('.','139.86.23.139');print_r($ipArr);$ip = $ipArr[0] * 0x1000000 + $ipArr[1] * 0x10000 + $ipArr[2] * 0x100 + $ipArr[3];echo $ip.'<br> 阅读全文
posted @ 2018-11-17 17:07 ph||py 阅读(304) 评论(0) 推荐(0)

php strtotime 运用

摘要: var_dump(date("Y-m-d", strtotime("-1 month", strtotime("2018-10-15"))));//'2018-09-15' var_dump(date("Y-m-d", strtotime("-1 month", strtotime("2018-10 阅读全文
posted @ 2018-10-15 14:26 ph||py 阅读(350) 评论(0) 推荐(0)

php 运算符和位于运算

摘要: 实例 阅读全文
posted @ 2018-10-12 17:15 ph||py 阅读(261) 评论(0) 推荐(0)