![](https://img-blog.csdnimg.cn/20190828093115775.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
PHP基础
文章平均质量分 89
PHP知识整理
supermanhss
简单就好
展开
-
LinuxCentOs7搭建www服务器之安装PHP
安装1. 检查系统是否已经安装PHP# yum list installed php*2. 删除已经安装的PHP(可选)# yum remove php*3. 查询可安装的PHP版本(可选)# yum list php*注:如果没有找到自己需要的版本可以更换yum源后在来查询,更换yum源可以参考下一步。4. 更换yum源(可选)webtatic官方说...原创 2019-09-25 10:16:28 · 451 阅读 · 0 评论 -
PHP数组操作分类及函数简介
一般reset( array &$array ):将数组的内部指针指向第一个单元; key( array $array) : mixed:返回数组中当前单元的键名; current(array &$array ) : mixed:返回数组中的当前单元; prev( array &$array ) : mixed:将数组中的内部指针向后移动一位,并返回成员值...原创 2019-08-23 09:48:09 · 148 阅读 · 0 评论 -
PHP的瑞士军刀SPL库
SPL库是什么 SPL是用于解决典型问题(standard problems)的一组接口与类的集合。PHP 5.0 起内置了SPL库,PHP5.3 已逐渐的成熟。SPL库在开发环境中被内置,无需任何设置即可使用。SPL库能做什么提供数据结构(双向链表、栈、队列、堆、阵列、映射),并实现了这些数据结构的操作; 迭代器(迭代访问、过滤数据、缓存结果、控制分页); SP...原创 2019-08-23 17:05:33 · 202 阅读 · 0 评论 -
PHP字符串操作分类及函数简介
一般strlen( string $str) : int :获取字符串长度; str_shuffle( string $str) : string:随机打乱一个字符串; str_rev( string $str) : string :反转字符串; lcfirst( string $str ) : string:使一个字符串的第一个字符小写; ucfirst( string $str) ...原创 2019-08-22 13:03:21 · 183 阅读 · 0 评论 -
PHP常用的时间与日期函数整理
date_default_timezone_get() : string:取得一个脚本中所有日期时间函数所使用的默认时区; date_default_timezone_set( string $timezone_identifier ) : bool:设定用于一个脚本中所有日期时间函数的默认时区; time() : int:返回当前的 Unix 时间戳; microtime( [ bool ...原创 2019-08-23 11:10:44 · 285 阅读 · 0 评论 -
Apache不在URL里显示index.php
做Url路由美化时我们都不会在Url显示脚本文件(index.php),这需要Apache启用 Rewrite 伪静态功能来实现; demo.com/index.php/site/index 应美化为 demo.com/site/index下面是配置过程:1. 打开apache的配置文件:httpd.conf;2. 找到#LoadModule rewrite_module modules...原创 2019-08-29 18:03:33 · 572 阅读 · 0 评论