-
php 重写分页器 CLinkPager的实例
[PHP教程] 2021-03-16 12:16:59 133人阅读
php 重写分页器 CLinkPager的实例 1、自定义的分页器类放在哪里? 有两个位置可以放, 第一种是放在 protected/extensions 中,在使用是import进来,或在config文件中import进来; 第二种是放在 protected/component...[详细]
-
Yii2使用驼峰命名的形式访问控制器的示例代码
[PHP教程] 2021-03-16 12:16:59 106人阅读
yii2在使用的时候,访问控制器的时候,如果控制器的名称是驼峰命名法,那访问的url中要改成横线的形式。例如: 最近在做某渠道的直连的时候,他们提供的文档上明确指出接口的形式: 刚开始以为YII2中肯定有这样的设...[详细]
-
php两个多维数组组合遍历的实例
[PHP教程] 2021-03-16 12:08:59 81人阅读
实例如下: LoanRecord->searchloan($conditions,$columns,$page,$this->num,$user_id); foreach ($res[1] as $key => $value) { if(!empty($value['b']['id'])){ $result_day = $this->LoanRecord ->getLastDay($va...[详细]
-
IIS下配置页面重写(配合插件url-rewrite2去除
[PHP教程] 2021-03-16 12:08:59 56人阅读
本来一直想了解浏览器地址栏中url后缀名如何去除,今天正好抽空折腾一下。 1. URL重写组件url-rewrite2 微软官方下载地址: 也可直接点击下载: 2. 暂停IIS,安装组件 在安装组件之前,先暂停IIS。 目前(2017/10/30...[详细]
-
php Redis函数用法实例总结【附php连接redis单
[PHP教程] 2021-03-16 11:56:01 60人阅读
本文实例总结了php Redis函数用法。供大家参考研究具体如下: 一直在拿PHP使用Redis,但是总感觉不牢靠,索性借这个时间空余一气呵成,把PHP中所有操作到的Redis命令,几乎全敲个遍,包括它的返回值都是盯对过的,哪...[详细]
-
PHP常见数学函数及BC高精度数学函数用法示例
[PHP教程] 2021-03-16 11:56:01 134人阅读
本篇章节讲解PHP常见数学函数及BC高精度数学函数用法。供大家参考研究具体如下: 1. bcadd 任意精度数的相加2. bcsub 任意精度数的减法3. bcmul 乘法, bcdiv除法 4. bcmod 取余数。 (比%功能更强大)5. bcpow 幂函...[详细]
-
php实现网页常见文件上传功能
[PHP教程] 2021-03-16 11:56:01 161人阅读
用php实现网页常见的文件上传功能,供大家参考,具体内容如下 上传页面 Title form method="post" action="123.php" enctype="multipart/form-data" input type="file" name="file" input type="submit" value="上传...[详细]
-
PHP实现对数组简单求交集,差集,并集功能示例
[PHP教程] 2021-03-16 11:56:01 143人阅读
本篇章节讲解PHP实现对数组简单求交集,差集,并集功能。供大家参考研究具体如下: 'zero','1...[详细]
-
PHP实现保存网站用户密码到css文件(通用型)
[PHP教程] 2021-03-16 11:56:01 167人阅读
很多时候呢,我们拿到一个shell以后,偶尔会遇到密码解不了的情况,用xss收集cookie吧,感觉不方便;利用xss平台劫持表单吧,感觉麻烦,也会担心自己想要的密码别人也copy了一份等等情况吧,这个时候我们就需要自己...[详细]
-
PHP栈的定义、入栈出栈方法及基于堆栈实现的计
[PHP教程] 2021-03-16 11:56:00 156人阅读
本篇章节讲解PHP栈的定义、入栈出栈方法及基于堆栈实现的计算器。供大家参考研究具体如下: 栈是线性表的一种,他的特点是后入先出,可以这么理解,栈就像一个存东西的盒子,先放进去的在最底层,后放进去的在上层,...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]