-
php校验表单检测字段是否为空的方法
[PHP教程] 2022-08-02 16:05:43 197人阅读
这篇文章主要介绍了php校验表单检测字段是否为空的方法,涉及php验证表单的技巧,非常具有实用价值,需要的朋友可以参考下 本文实例讲述了php校验表单检测字段是否为空的方法。分享给大家供大家参考。具体如下: php校...[详细]
-
PHP SESSION的增加删除修改查看操作
[PHP教程] 2022-08-02 16:04:43 181人阅读
这篇文章主要介绍了PHP SESSION的增加、删除、修改、查看操作,本文直接给出操作实例,需要的朋友可以参考下 SESSION与COOKIE的不同之处首先是,cookie的文件是保存在客户端的,而session是保存在服务器的,相比而言,...[详细]
-
php带抄送和密件抄送的邮件发送方法
[PHP教程] 2022-08-02 16:04:12 196人阅读
这篇文章主要介绍了php带抄送和密件抄送的邮件发送方法,涉及php中mail函数的使用技巧,非常具有实用价值,需要的朋友可以参考下 本文实例讲述了php带抄送和密件抄送的邮件发送方法。分享给大家供大家参考。具体分析如...[详细]
-
Codeigniter实现传输带附件的邮件
[PHP教程] 2022-07-30 13:38:16 123人阅读
这篇文章主要介绍了Codeigniter实现发送带附件的邮件的方法,涉及Codeigniter中attach方法的使用技巧,非常具有实用价值,需要的朋友可以参考下 attach() 方法允许你的发邮件时带上附件,下面是演示代码 代码如下:$this...[详细]
-
Php使用strtotime计算两个给定日期之间天数的方
[PHP教程] 2022-07-30 13:37:01 67人阅读
这篇文章主要介绍了PHP使用strtotime计算两个给定日期之间天数的方法,实例分析了php操作时间的技巧,非常具有实用价值,需要的朋友可以参考下 具体分析如下:PHP的strtotime函数用于将任何英文文本的日期时间描述解析...[详细]
-
php实现兼容2038年后Unix时间戳转换函数介绍
[PHP教程] 2022-07-30 13:35:56 161人阅读
这篇文章主要介绍了php实现兼容2038年后Unix时间戳转换函数,使用方法和就的函数一样,非常实用,推荐给大家,希望大家能够喜欢。 使用方法跟旧的函数一模一样. 代码如下: function fun_strtotime($var1=0,$var2=0){...[详细]
-
PHP往XML中增加节点的方法
[PHP教程] 2022-07-30 13:34:06 109人阅读
这篇文章主要介绍了PHP往XML中添加节点的方法,涉及php操作XML文件的技巧,具有一定参考借鉴价值,需要的朋友可以参考下 具体方法如下: 1. contacts.xml代码 代码如下:contact id=43956 personal name firstJ/first mi...[详细]
-
php中实现ip白名单黑名单功能
[PHP教程] 2022-07-30 13:33:25 86人阅读
本文给大家分享了2个php用于实现黑白名单的实用函数,分别是安全IP检测函数和获取客户端IP函数,注释里解释的非常清楚,这里我就不多废话了。 这个是一个检测ip是否非法的php函数,适应于白名单,黑名单功能开发,主...[详细]
-
php从csv文件读取数据并输出到网页的方法介绍
[PHP教程] 2022-07-30 13:32:40 153人阅读
本文实例讲述了php从csv文件读取数据并输出到网页的方法。具体实现方法如下: ?php$fp = fopen(sample.csv,r) or die(cant open file);print table/n;while($csv_line = fgetcsv($fp)) { print tr; for ($i = 0, $j ...[详细]
-
php中判断两个浮点数是否相等的方法
[PHP教程] 2022-07-30 13:32:10 155人阅读
本文实例讲述了php判断两个浮点数是否相等的方法。具体分析如下: 由于浮点数直接用==判断是否相等是不完全正确的,所以下面给出了一个方法,先设定的一个精度,如果在精度范围内相等则认为相等,否则认为不能?php$d...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]