-
全面解读PHP的Yii框架里的日志功能
[PHP教程] 2022-02-24 14:15:58 161人阅读
Yii页面级日志开启 在 Main.php中 log段添加、下面显示页面日志 array( class=CWebLogRoute, levels=trace, //级别为trace categories=system.db.* //只显示关于数据库信息,包括数据库连接,数据库执行语句 ), 完整如...[详细]
-
PHP浮点数的一个常见情况
[PHP教程] 2022-02-24 14:15:28 155人阅读
PHP是一种弱类型语言, 这样的特性, 必然要求有无缝透明的隐式类型转换, PHP内部使用zval来保存任意类型的数值, zval的结构如下(5.2为例): struct _zval_struct { /* Variable information */ zvalue_value value; /*...[详细]
-
php原生上拉加载以及点击加载更多的实现办法
[PHP教程] 2022-02-24 14:15:01 69人阅读
本篇文章给大家带来的内容是关于php原生上拉加载以及点击加载更多的实现方法(代码示例),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 设计目的: 一个网站的数据非常多的时候,需要分页,方便...[详细]
-
php多线程是什么意思
[PHP教程] 2022-02-24 14:14:42 152人阅读
PHP在默认的情况下是不支持多线程的,通过安装pthreads扩展,让其参数来指定编译PHP的线程安全方式来使其支持多线程,但是使用的过程中要考虑到线程安全的问题。 线程是操作系统中进行运算调度的最小单位。它被包含...[详细]
-
PHP与RabbitMQ实现消息队列的完整代码
[PHP教程] 2022-02-24 14:14:07 81人阅读
本篇文章给大家带来的内容是关于PHP和RabbitMQ实现消息队列的完整代码,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 先安装PHP对应的RabbitMQ,这里用的是 php_amqp 不同的扩展实现方式会有细微...[详细]
-
php中assert和eval的详细说明
[PHP教程] 2022-02-24 14:13:46 185人阅读
本篇文章给大家带来的内容是关于php中assert和eval的详细介绍(代码示例),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 assert 判断一个表达式是否成立。返回true or false; ?php $s = 123; a...[详细]
-
PHP如何完成斐波那契数列?
[PHP教程] 2022-02-24 14:13:02 186人阅读
斐波那契数列(Fibonacci sequence),又称黄金分割数列、因数学家列昂纳多斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为兔子数列,指的是这样一个数列:1、1、2、3、5、8、13、21、34、,简单...[详细]
-
PHP7.0新增功能解析
[PHP教程] 2022-02-24 14:12:05 189人阅读
这一篇主要是来详细分析php7.0的新增功能。 一、性能与底层 PHP7速度是 PHP5.6 的两倍 php7 最显著的变化就是性能的极大提升,已接近Facebook开发的PHP执行引擎HHVM。在WordPress基准性能测试中,速度比5.6版本要快2...[详细]
-
PHP获取日期对应星期,一周日期,星期开始与结束
[PHP教程] 2022-02-24 14:10:48 82人阅读
本文实例讲述了PHP获取日期对应星期、一周日期、星期开始与结束日期的方法。分享给大家供大家参考,具体如下: /* * 获取日期对应的星期 * 参数$date为输入的日期数据,格式如:2018-6-22 */ function get_week($dat...[详细]
-
PHP使用SOAP扩展实现WebService的办法
[PHP教程] 2022-02-24 14:10:05 62人阅读
本文实例讲述了PHP使用SOAP扩展实现WebService的方法。分享给大家供大家参考,具体如下: 最近在一个PHP项目中对接外部接口涉及到WebService,搜索引擎上相关文章不是很多,找到的大都是引用一个号称很强大的开源软...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]