-
PHP回调函数与匿名函数实例详解
[PHP教程] 2021-02-21 09:26:23 109人阅读
本篇章节讲解PHP回调函数与匿名函数。供大家参考研究具体如下: 回调函数和匿名函数 回调函数、闭包在JS中并不陌生,JS使用它可以完成事件机制,进行许多复杂的操作。PHP中却不常使用,今天来说一说PHP中中的回调函...[详细]
-
搭建自己的PHP MVC框架详解
[PHP教程] 2021-02-20 18:04:57 66人阅读
本文详细讲述了搭建自己的PHP MVC框架的方法。供大家参考研究具体如下: 前言 说到写PHP的MVC框架,大家想到的第一个词--“造轮子”,是的,一个还没有深厚功力的程序员,写出的PHP框架肯定不如那些出自大神们之手、...[详细]
-
PHP数据库编程之MySQL优化策略概述
[PHP教程] 2021-02-20 18:03:27 123人阅读
本文简单讲述了PHP数据库编程之MySQL优化策略。供大家参考研究具体如下: 前些天看到一篇文章说到PHP的瓶颈很多情况下不在PHP自身,而在于数据库。我们都知道,PHP开发中,数据的增删改查是核心。为了提升PHP的运行...[详细]
-
PHP数据库操作三:redis用法分析
[PHP教程] 2021-02-20 17:50:27 55人阅读
本篇章节讲解PHP数据库操作redis用法。供大家参考研究具体如下: memcache虽然好用,解决了数据库遇到高并发时的IO问题,但还有很多问题丞待解决: 1、数据持久性问题,memcache用内存进行存储,一旦memcache服务器...[详细]
-
PHP数据库操作二:memcache用法分析
[PHP教程] 2021-02-20 17:49:21 99人阅读
本篇章节讲解PHP数据库操作之memcache用法。供大家参考研究具体如下: 在一个高并发的web应用中,数据库存取瓶颈一直是个大问题,一旦达到某个极限,数据库很容易崩溃,但是如果我们把常用的数据放到内存中,在需要...[详细]
-
基于php编程规范(详解)
[PHP教程] 2021-02-20 17:48:31 168人阅读
今天写这个是为了 提醒自己 编程过程 不仅要有逻辑 思想 还有要规范 代码 这样可读性 1、PHP 编程规范与编码习惯最主要的有以下几点: 1 文件说明 2 function 函数体说明 3 代码缩进 4 if省略 5 变量规范 6 命名规范...[详细]
-
PHP数据库操作四:mongodb用法分析
[PHP教程] 2021-02-20 17:48:05 108人阅读
本篇章节讲解PHP数据库mongodb用法。供大家参考研究具体如下: 传统数据库中,我们要操作数据库数据都要书写大量的sql语句,而且在进行无规则数据的存储时,传统关系型数据库建表时对不同字段的处理也显得有些乏力,m...[详细]
-
基于PHP常用文件函数和目录函数整理
[PHP教程] 2021-02-20 17:47:24 180人阅读
一、常用文件函数库 1、basename(); -- 返回路径中的文件名部分。 参数: path 一个路径。在 Windows 中,斜线(/)和反斜线(\)都可以用作目录分隔符。在其它环境下是斜线(/) suffix 如果文件名是以 suffix 结束...[详细]
-
PHP实现的堆排序算法详解
[PHP教程] 2021-02-20 17:45:49 155人阅读
本篇章节讲解PHP实现的堆排序算法。供大家参考研究具体如下: 经验 工作了,面试我工作这家公司时被技术面打击得不行,因为自己的数据结构等基础学得实在太差,虽然原来是想做设计师的说。。。不过看在PHP写得还凑合...[详细]
-
PHP编译configure时常见错误的总结
[PHP教程] 2021-02-20 17:39:03 174人阅读
PHP编译configure时常见错误的总结 PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!出错最多的就是安装PHP扩展的时候了。其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]