-
PHP实现实时生成并下载超大数据量的EXCEL文件详
[PHP教程] 2021-03-13 12:11:12 119人阅读
前言 最近在工作中接到一个需求,通过选择的时间段导出对应的用户访问日志到excel中, 由于用户量较大,经常会有导出50万加数据的情况。而常用的PHPexcel包需要把所有数据拿到后才能生成excel, 在面对生成超大数据...[详细]
-
基于php流程控制语句和循环控制语句(讲解)
[PHP教程] 2021-03-13 12:11:12 192人阅读
1、流程控制语句主要有if、ii...else、elseif(有时也可以写成else if)、switch四种。 PHP中语句格式为: if(条件满足) {执行语句} if(条件满足) {执行语句} else {执行语句} if(条件满足) {执行语句} elseif {执行语...[详细]
-
完美的php分页类
[PHP教程] 2021-03-13 12:02:13 89人阅读
本文实例为大家分享了php分页类的具体代码,供大家参考,具体内容如下 "条记录",'prev...[详细]
-
2017年最好用的9个php开发工具推荐(超好用)
[PHP教程] 2021-03-13 12:02:13 145人阅读
对于PHP开发者,在互联网上有很多可用的开发工具,但对于初学者不知道哪个php开发工具比较好,找到一个合适的PHP开发工具是很难的,需要花费很多的时间精力。所以,今天编程之家小编就为初学者推荐几个2017年最好用...[详细]
-
PHP设计模式之工厂模式详解
[PHP教程] 2021-03-13 12:02:13 111人阅读
在开发大型系统时,往往会出现这样一种情况: 我有一部分基础数据,是类classA是从数据库A读取出来的,其他很多的功能都是基于这个基础数据来操作的。现在呢,我想把数据从数据库A变成从另外的数据源去获取,这时候...[详细]
-
php实现的后台表格分页功能示例
[PHP教程] 2021-03-13 12:02:13 195人阅读
本篇章节讲解php实现的后台表格分页功能。供大家参考研究具体如下: user.php: "; @$start = $_REQUEST['start']; if($start === null || $start === " "){ die("start required"); } require("init.php"); $sql = ...[详细]
-
Yii2框架实现登录、退出及自动登录功能的方法详
[PHP教程] 2021-03-13 12:02:13 182人阅读
本篇章节讲解Yii2框架实现登录、退出及自动登录功能的方法。供大家参考研究具体如下: 自动登录的原理很简单。主要就是利用cookie来实现的 在第一次登录的时候,如果登录成功并且选中了下次自动登录,那么就会把用户...[详细]
-
Yii2.0实现生成二维码功能实例
[PHP教程] 2021-03-13 12:02:13 143人阅读
本篇章节讲解Yii2.0实现生成二维码功能。供大家参考研究具体如下: 通过 1.下面的方法是通过composer加载 或者添加 到对应项目的composer.json文件中 通过归档文件安装: 不习惯用composer的用户可以点击此处本站下...[详细]
-
PHP中的浅复制与深复制的实例详解
[PHP教程] 2021-03-13 12:02:13 66人阅读
PHP中的浅复制与深复制的实例详解 前言: 最近温习了一下Design Pattern方面的知识,在看到Prototype Pattern这一设计模式时,注意到其中涉及到一个浅复制与深复制的问题。这里来总结一下,提醒自己以后一定要多加注...[详细]
-
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...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]