-
php中命名空间namespace用法说明
[PHP教程] 2022-02-23 15:07:45 54人阅读
PHP的命名空间(namespace)是php5.3之后才有的之前学习php所以没有这个东西了,最近用到了php命名空间了,下面我们一起来看看命名空间namespace用法 现在说这个,感觉有点过时了,但是感觉用namespace的人还是不多,...[详细]
-
php性能解析之php-fpm的慢执行日志slow log
[PHP教程] 2022-02-23 15:07:17 94人阅读
下面我们来看一篇关于php性能分析之php-fpm的慢执行日志slow log文章,希望文章对各位有帮助. 众所周知,mysql有slow query log,根据慢查询日志,我们可以知道那些sql语句有性能问题,作为mysql的好搭档,php也有这样的功...[详细]
-
PHP SPL标准库 SplFixedArray 说明及和Array的
[PHP教程] 2022-02-23 15:06:36 88人阅读
SPL - Standard PHP Library,标准PHP类库,本文我们来看看SPL标准库之数据结构SplFixedArray,及SplFixedArray和Array的性能测试对比. SplFixedArray主要是处理数组相关的主要功能,与普通php array不同的是,它是固定长...[详细]
-
微信公众平台PHP开发版本示例
[PHP教程] 2022-02-23 15:06:07 63人阅读
微信公众平台现在有许多的api接口了我们可以利用微信公众平台来实现许多的一些功能,下面来看一个php版本的微信公众平台开发实例. 最近在做微信公众平台开发,一口气写了二十几个功能,挺有意思的~ 今天来分享一下开发...[详细]
-
PHP接口开发签名验证原理解析
[PHP教程] 2022-02-23 15:05:47 193人阅读
接口签名现在在应用开发中我们通常会用到了,像做支付接口时就必须要用到接口签名了,我们下面来看一个简单的在app应用中的接口签名实现原理了. 接口开发是各系统之间对接的重要方式,其数据是通过开放的互联网传输,对...[详细]
-
PHP多线程pthreads运用例子
[PHP教程] 2022-02-23 15:05:28 145人阅读
php本身对于多线程处理是不够理想的,但如果我们使用pthreads性能会有所提高了,下面来看一个PHP多线程pthreads使用例子. ?php declare(ticks = 1); $running = 1; //信号处理函数 function sig_handler($signo) { s...[详细]
-
php soap扩展开启和 soapCall使用问题
[PHP教程] 2022-02-23 15:04:55 129人阅读
php soap扩展简单对象访问协议是交换数据的一种协议规范,是一种轻量的、简单的、基于XML(标准通用标记语言下的一个子集)的协议,它被设计成在WEB上交换结构化的和固化的信息,下面我们来看看小编整理的php soap扩...[详细]
-
php生成csv文件并下载及问题汇总
[PHP教程] 2022-02-23 15:04:32 104人阅读
csv是一种超级简单的excel表格形式了,我们生成只要按指定格式然后生成.csv文件就可以了,虽然说简单但使用中也会碰到不少的问题,下面小编来为各位总结一下。 例子,生成csv文件并下载 //要生成csv文件的数组 $csvAr...[详细]
-
PHP版微信红包API接口程序
[PHP教程] 2022-02-23 15:03:38 177人阅读
对于微信红包我相信今年过年时各位朋友都有知道吧,这个微信红包相当的火爆了,下面我们来给各位介绍一个PHP版微信红包API接口程序了,我们可以基于这个接口也实现开发第三方红包功能. 根据微信高级红包接口,开发PHP版...[详细]
-
PHP Output Control 缓冲控制函数应用实例解析
[PHP教程] 2022-02-23 15:02:44 64人阅读
当网站大了访客多了,缓冲应用是少不了的,在php中如何控制缓冲输出呢?现在我们通过函数 Output Control,再结合应用实例,详细讲解一下PHP输出缓冲控制- Output Control 函数应用. 其实对于PHP程序员来说,基本上每个脚...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]