-
老生常谈PHP中的数据结构:DS扩展
[PHP教程] 2021-01-27 17:27:30 79人阅读
PHP7以上才能安装和使用该数据结构扩展,安装比较简单: 1. 运行命令 pecl install ds 2. 在php.ini中添加 extension=ds.so 3. 重启PHP或重载配置 Collection Interface: 包含本库中所有数据结构通用功能的基本inte...[详细]
-
PHPstorm快捷键(分享)
[PHP教程] 2021-01-27 17:25:22 127人阅读
如下所示: Eclipse快捷键 Ctrl+1 快速修复Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置Alt+↑ 当前行和上面一行交互位...[详细]
-
利用PHP_XLSXWriter代替PHPExcel的方法示例
[PHP教程] 2021-01-27 17:14:07 121人阅读
前言 本文主要给大家介绍的是关于利用PHP_XLSXWriter代替PHPExcel的方法,分享出来供大家参考学习,下面话不多说,来一起看看详细的介绍: 二者有何区别? PHPExcel 是一个处理Excel,CVS文件的开源框架,它基于微软的O...[详细]
-
Joomla框架实现字符串截取的方法示例
[PHP教程] 2021-01-27 17:13:13 193人阅读
本篇章节讲解Joomla框架实现字符串截取的方法。供大家参考研究具体如下: 在用joomla进行开发的时候,需要用到国外的资源,一些module,组件,插件之类的,但是我们会发现,在字符串这个方法都需要进行修改。因为PHP...[详细]
-
PHP新特性详解之命名空间、性状与生成器
[PHP教程] 2021-01-27 17:12:19 153人阅读
本文主要跟大家介绍了关于PHP新特性之命名空间、性状与生成器的相关内容,分享出来供大家参考学习,下面来一起看看详细的介绍: 1.命名空间 命名空间是什么? 1).命名空间在PHP 5.3中被引入,类似于文件夹的功能。例...[详细]
-
PHP实现基于面向对象的mysqli扩展库增删改查操
[PHP教程] 2021-01-27 16:49:34 175人阅读
本篇章节讲解PHP实现基于面向对象的mysqli扩展库增删改查操作工具类。供大家参考研究具体如下: mysqli扩展库是MySQL扩展库的改进版本,在mysql扩展库的基础上提高了稳定性和效率,mysqli扩展库有两套东西,一套就是...[详细]
-
PHP基于XMLWriter操作xml的方法分析
[PHP教程] 2021-01-27 16:48:34 163人阅读
本篇章节讲解PHP基于XMLWriter操作xml的方法。供大家参考研究具体如下: 接着昨天的这次再来学习一种读写xml的方式,这种方式主要围绕XMLWriter和XMLReader进行。前者用于生成xml,后者则是用来读取并解析xml.废话不...[详细]
-
PHP基于DOMDocument解析和生成xml的方法分析
[PHP教程] 2021-01-27 16:47:15 90人阅读
本篇章节讲解PHP基于DOMDocument解析和生成xml的方法。供大家参考研究具体如下: 前面和大家分享了,但是php中除了simplexml还有DOMDocument,这次就着重来看看DOMDocument的用法,还是把生成xml和解析xml分开写 1. ...[详细]
-
PHP preg_match实现正则表达式匹配功能【输出是
[PHP教程] 2021-01-27 16:46:25 58人阅读
本篇章节讲解PHP preg_match实现正则表达式匹配功能。供大家参考研究具体如下: preg_match — 执行一个正则表达式匹配 preg_match ( $pattern,$subject,$matches ) 搜索subject与pattern给定的正则表达式的一个匹配...[详细]
-
php实现生成code128条形码的方法详解
[PHP教程] 2021-01-27 16:35:10 124人阅读
本篇章节讲解php实现生成code128条形码的方法。供大家参考研究具体如下: 效果图: self::STARTA,'B...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]