-
OAuth认证协议中的HMACSHA1加密算法(实例)
[PHP教程] 2021-03-13 12:02:13 116人阅读
实例如下: $blocksize) $key=pack('H*',$hashfunc($key)); $key=str_pad($key,$blocksize,chr(0x00)); $ipad=str_repeat(chr(0x36),$blocksize); $opad=str_repeat(chr(0x5c),$blocksize); $hmac = pack( 'H*',$has...[详细]
-
php调用云片网接口发送短信的实现方法
[PHP教程] 2021-03-13 12:02:13 66人阅读
php调用云片网接口发送短信的实现方法 云片网发送短信 yunpian_appkey = env('yunpian_appkey...[详细]
-
PHP读
[PHP教程] 2021-03-08 22:08:04 168人阅读
本篇章节讲解PHP读...[详细]
-
PHP实现二维数组按指定的键名排序的方法示例
[PHP教程] 2021-03-07 13:20:15 86人阅读
本篇章节讲解PHP实现二维数组按指定的键名排序的方法。供大家参考研究具体如下: $val){ //对排序字段值进行过滤 $val[$keys] = str_replace('-','',$val[$keys]); $val[$keys] = str_replace(' ',$val[$keys]); $va...[详细]
-
PHP实现将汉字转换为拼音及获取词语首字母的方
[PHP教程] 2021-03-07 13:20:15 89人阅读
本篇章节讲解PHP实现将汉字转换为拼音及获取词语首字母的方法。供大家参考研究具体如下: 最近要开发将汉字转换为拼音和得到首字的功能记录下来哈子:呵呵~ = '5.0...[详细]
-
phpexcel导入excel处理大数据(实例讲解)
[PHP教程] 2021-03-07 13:20:15 125人阅读
先下载对应phpExcel 的包就行了https://github.com/PHPOffice/PHPExcel 下载完成 把那个Classes 这个文件夹里面的 文件跟文件夹拿出来就好了。 直接写到PHPExcel 这个文件里面的。调用很简单。引入phpExcel 这个类传...[详细]
-
基于PHP函数的操作方法
[PHP教程] 2021-03-07 13:20:15 126人阅读
如下所示: //简单函数 function show(){ echo "hello"; } show(); //有参数的函数 function show($a){ echo "$a"; } show("world"); //有返回值的函数 function show(){ return "小V,你好!"; } echo show(); func...[详细]
-
excel的导出和下载(实例讲解)
[PHP教程] 2021-03-07 13:19:00 99人阅读
1、前言 有时需要将数据库表资源导出excel,做成一些报表数据。 而php导出excel的方法大致有几种: 1. 使用php的类库,进行导出,如PHPExcel 2.使用php原生的方法进行导出 而本文介绍的就是,如何通过原生方法导出ex...[详细]
-
php 写入缓存文件、读取缓存文件的函数代码
[PHP教程] 2021-03-07 13:11:14 99人阅读
一、写结果缓存文件 "; file_put_contents($cache_file_path,$content,LOCK_EX);} 二、读结果缓存文件 以上就是php 写入缓存文件、读取缓存文件内容的函数代码,需要的朋友可以参考一下。...[详细]
-
PHP基于闭包思想实现的BT(torrent)文件解析工具
[PHP教程] 2021-03-07 13:11:14 156人阅读
本篇章节讲解PHP基于闭包思想实现的torrent文件解析工具。供大家参考研究具体如下: PHP对静态词法域的支持有点奇怪,内部匿名函数必须在参数列表后面加上use关键字,显式的说明想要使用哪些外层函数的局部变量。 0)...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]