-
PHP empty 函数简单介绍
[PHP教程] 2022-01-15 14:26:06 107人阅读
这篇文章主要为大家详细介绍了PHP empty()函数简单说明,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 empty()函数是用来测试变量是否已经配置。若变量已存在、非空字符串...[详细]
-
PHP判断判访问设备是手机移动端或是PC电脑端
[PHP教程] 2022-01-15 14:25:30 91人阅读
这篇文章主要为大家详细介绍了PHP判断判访问设备是手机移动端还是PC电脑端,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 随着网络进入移动互联网时代,我们的网站已经多...[详细]
-
PHP判断页面是否存在的办法
[PHP教程] 2022-01-15 14:25:12 51人阅读
这篇文章主要为大家详细介绍了PHP判断页面是否存在的方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 PHP判断404代码。也就是标题所讲的PHP判断页面是否存在的方法。本...[详细]
-
php5.2环境 Cookie没有HttpOnly标志 的处理办法
[PHP教程] 2022-01-15 14:24:36 192人阅读
这篇文章主要为大家详细介绍了php5.2环境 Cookie没有HttpOnly标志 的解决办法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 做网站的朋友大部分都会很在意网站的安全,很...[详细]
-
PHP时间格式大集合
[PHP教程] 2022-01-15 14:24:03 88人阅读
这篇文章主要为大家详细介绍了PHP时间格式大结合,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 date 用法: date(格式,[时间]); 如果没有时间参数,则使用当前时间. 格式是...[详细]
-
php小数点后取两位的三种实现办法
[PHP教程] 2022-01-15 14:23:09 73人阅读
php小数点后取两位的方法。 方法一、经常用到小数点后取几位,但不能进位的情况。 比如3.149569取小数点后两位,最后两位不能四舍五入。结果:3.14。 可以使用函数floor。 该函数是舍去取整。例如,floor(4.66456) ...[详细]
-
最简洁的PHP程序员学习路线和建议
[PHP教程] 2022-01-15 14:21:52 159人阅读
为了你可以更好地学习PHP,这次主要是想说一下PHP的学习线路,文末还有10条php性能优化的小技巧介绍哦 适用于PHP初学者的学习线路和建议 我们要有一个循序渐进的学习过程,这里先把学习PHP的过程做一下概括,这和很...[详细]
-
PHP批量去掉bom头代码的小工具
[PHP教程] 2022-01-15 14:21:13 173人阅读
在 aitecms 群里有网友抱怨了好几天说本地的验证码一直无法显示,后来听说解决了,问其如何解决的,说是去除了文件 bom 就好了。后来百度到一篇文章也说 dedecms 的验证码不能显示,某次解决了文件 bom 后竟然好了,...[详细]
-
php怎么调用远程数据?完成代码
[PHP教程] 2022-01-15 14:20:47 113人阅读
本文介绍了php调用远程数据的方法,php curl调用远程数据的例子,需要的朋友参考下。 默认不打开文件系统和流配置选项 allow_url_fopen ,建议使用一个替代的函数模块 cURL。 php cURL 远程读取数据的方法: 例1,al...[详细]
-
PHP开发提升效率技巧
[PHP教程] 2022-01-15 14:20:05 127人阅读
0、用单引号代替双引号来包含字符串,这样做会更快一些。因为PHP会在双引号包围的字符串中搜寻变量,单引号则不会,注意:只有echo能这么做,它是一种可以把多个字符串当作参数的函数(译注:PHP手册中说echo是语言...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]