-
PHP封装的XML简单操作类完整实例
[PHP教程] 2021-03-15 17:29:03 156人阅读
本篇章节讲解PHP封装的XML简单操作类。供大家参考研究具体如下: xml_dom.php封装类文件: dbfile = $db_file; if(!file_exists($db_file)) {// die('未找到数据库文件...[详细]
-
PHP+AJAX 投票器功能
[PHP教程] 2021-03-15 17:29:03 165人阅读
终于到AJAX,翻译过来就是”异步Javascript和XML”,他可以实现网页内容的部分加载,可提高用户体验。现在有很多网站都有用这技术,反正你知道他能实现网页的异步更新就差不多了。当然下面的例子都相对简单,并没有...[详细]
-
PHP对称加密算法(DES/AES)类的实现代码
[PHP教程] 2021-03-15 09:15:02 145人阅读
对称密钥加密机制即对称密码体系,也称为单钥密码体系和传统密码体系。对称密码体系通常分为两大类,一类是分组密码(如DES、AES算法),另一类是序列密码(如RC4算法)。 AES 是一个新的可以用于保护电子数据的加密...[详细]
-
PHP中递归的实现实例详解
[PHP教程] 2021-03-15 09:13:46 126人阅读
递归的定义 递归(http:/en.wikipedia.org/wiki/Recursive)是一种函数调用自身(直接或间接)的一种机制,这种强大的思想可以把某些复杂的概念变得极为简单。在计算机科学之外,尤其是在数学中,递归的概念屡见不鲜...[详细]
-
PHP基于imagick扩展实现合成图片的两种方法【附
[PHP教程] 2021-03-15 09:13:03 182人阅读
本篇章节讲解PHP基于imagick扩展实现合成图片的两种方法。供大家参考研究具体如下: 方法一:compositeimages newimage($bg_width,$bg_height,'white...[详细]
-
Ajax中的JSON格式与php传输过程全面解析
[PHP教程] 2021-03-15 09:12:03 93人阅读
在Ajax中的JSON格式与php传输过程中有哪些要注意的小地方呢? 先来看一下简单通用的JSON与php传输数据的代码 HTML文件: 在整个过程中先要获得AJAX对象,然后用POST请求方式与PHP文件连接,这时候用的是POST方法请求...[详细]
-
php表单处理操作
[PHP教程] 2021-03-15 09:12:02 192人阅读
最近在自学PHP,刚好学到了表单这一块,就简单说一下吧。 首先,我这边是用到了两个软件,一个是PHPstudy,另一个是phpstorm。 安装也很简单,我这里就不多说了。 步骤:1.打开phpstudy 2.打开编辑器,我的是用phpst...[详细]
-
PHP实现验证码校验功能
[PHP教程] 2021-03-15 08:56:03 177人阅读
验证码的校验是利用PHP中的 SESSION功能来实现。在最顶端声明函数 session_start(); 告诉服务器我们要用这个函数的功能。 接下来我们用到的就是验证码实现的代码。这里用英文数字的代码为例。 然后在验证码实现之前...[详细]
-
PHP 实现人民币小写转换成大写的方法及大小写转
[PHP教程] 2021-03-15 08:56:03 96人阅读
下面一段代码给大家分享php实现人民币大小写转换的方法,具体代码如下所示: 15){ return "金额太大"; die(); } if($c = strpos($num,'.')){//有小数点,$c为小数点前有几位 $len=strlen($num)-strpos($num,'.')-1;//...[详细]
-
PHP实现绘制二叉树图形显示功能详解【包括二叉
[PHP教程] 2021-03-15 08:56:03 74人阅读
本篇章节讲解PHP实现绘制二叉树图形显示功能。供大家参考研究具体如下: 前言: 最近老师布置了一个作业:理解并实现平衡二叉树和红黑树,本来老师是说用C#写的,但是我学的C#基本都还给老师了,怎么办?那就用现在...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]