### **預定義變量**
對于全部腳本而言,PHP 提供了大量的預定義變量
超全局變量 — 超全局變量是在全部作用域中始終可用的內置變量
* [$GLOBALS](https://www.php.net/manual/zh/reserved.variables.globals.php)— 引用全局作用域中可用的全部變量
* [$\_SERVER](https://www.php.net/manual/zh/reserved.variables.server.php)— 服務器和執行環境信息
* [$\_GET](https://www.php.net/manual/zh/reserved.variables.get.php)— HTTP GET 變量
* [$\_POST](https://www.php.net/manual/zh/reserved.variables.post.php)— HTTP POST 變量
* [$\_FILES](https://www.php.net/manual/zh/reserved.variables.files.php)— HTTP 文件上傳變量
* [$\_REQUEST](https://www.php.net/manual/zh/reserved.variables.request.php)— HTTP Request 變量
* [$\_SESSION](https://www.php.net/manual/zh/reserved.variables.session.php)— Session 變量
* [$\_ENV](https://www.php.net/manual/zh/reserved.variables.environment.php)— 環境變量
* [$\_COOKIE](https://www.php.net/manual/zh/reserved.variables.cookies.php)— HTTP Cookies
* [$php\_errormsg](https://www.php.net/manual/zh/reserved.variables.phperrormsg.php)— 前一個錯誤信息
* [$http\_response\_header](https://www.php.net/manual/zh/reserved.variables.httpresponseheader.php)— HTTP 響應頭
* [$argc](https://www.php.net/manual/zh/reserved.variables.argc.php)— 傳遞給腳本的參數數目
* [$argv](https://www.php.net/manual/zh/reserved.variables.argv.php)— 傳遞給腳本的參數數組
## **數組**
* [`count`](https://www.php.net/manual/zh/function.count.php) - 計算數組中的單元數目,或者對象中的屬性個數
* [`sort`](https://www.php.net/manual/zh/function.sort.php) - 對數組排序
* [`ksort`](https://www.php.net/manual/zh/function.ksort.php) - 對數組根據鍵名升序排序
* [`array_count_values`](https://www.php.net/manual/zh/function.array-count-values.php) - 統計數中所有值
* [`array_flip`](https://www.php.net/manual/zh/function.array-flip.php) - 交換數組中的鍵和值
* [`array_merge`](https://www.php.net/manual/zh/function.array-merge.php) - 合并一個或多個數組
* [`array_pad`](https://www.php.net/manual/zh/function.array-pad.php) - 已指定長度將一個值填充進數組
* [`array_rand`](https://www.php.net/manual/zh/function.array-rand.php) - 在數組中隨機(偽隨機)取出一個或多個單元
* [`array_keys`](https://www.php.net/manual/zh/function.array-keys.php) - 返回數組中部分的或所有的 key
* [`array_values`](https://www.php.net/manual/zh/function.array-values.php) - 返回數組中所有的值
* [`array_shift`](https://www.php.net/manual/zh/function.array-shift) - 將數組**開頭**的單元移出數組
* [`array_pop`](https://www.php.net/manual/zh/function.array-pop.php) - 彈出數組**最后**一個單元(**出棧**)
* [ `array_unshift`](https://www.php.net/manual/zh/function.array-unshift) - 在數組**開頭**插入一個或多個單元
* [`array_push`](https://www.php.net/manual/zh/function.array-push.php) - 將一個或多個單元壓入數組的**末尾**(**入棧**)
* [`array_walk_recursive`](https://www.php.net/manual/zh/function.array-walk-recursive) - 對數組中的每個成員遞歸地應用用戶函數
## **字符串**
* [`ucfirst`](https://www.php.net/manual/zh/function.ucfirst.php) - 將字符串的首字母轉換為大寫
* [`lcfirst`](https://www.php.net/manual/zh/function.lcfirst.php) - 使一個字符串的第一個字符小寫
* [`strtolower`](https://www.php.net/manual/zh/function.strtolower.php) - 將字符串轉化為小寫
* [`strtoupper`](https://www.php.net/manual/zh/function.strtoupper.php) - 將字符串轉化為大寫
* [`ucwords`](https://www.php.net/manual/zh/function.ucwords.php) - 將字符串中每個單詞的首字母轉換為大寫
* [`explode`](https://www.php.net/manual/zh/function.explode.php) - 使用一個字符串分割另一個字符串
* [`strrev`](https://www.php.net/manual/zh/function.strrev) - 反轉字符串
* [`chunk_split`](https://www.php.net/manual/zh/function.chunk-split) - 將字符串分割成小塊
* [`ltrim`](https://www.php.net/manual/zh/function.ltrim) - 刪除字符串開頭的空白字符(或其他字符)
* [`number_format`](https://www.php.net/manual/zh/function.number-format) - 以千位分隔符方式格式化一個**數字**
* [`htmlspecialchars`](https://www.php.net/manual/zh/function.htmlspecialchars.php) - 將特殊字符轉換為 HTML 實體
* [`str_replace`](https://www.php.net/manual/zh/function.str-replace) - 子字符串替換
> 更多:https://www.php.net/manual/zh/ref.strings.php
## **時間**
* [`microtime`](https://www.php.net/manual/zh/function.microtime.php) - 返回當前 Unix 時間戳和微秒數
## **文件**
* [`fopen`](https://www.php.net/manual/zh/function.fseek) - 打開文件或者 URL
* [`fclose`](https://www.php.net/manual/zh/function.fclose) - 關閉一個已打開的文件指針
* [`fgets`](https://www.php.net/manual/zh/function.fgets.php) - 從文件指針中讀取一行
* [`fgetc`](https://www.php.net/manual/zh/function.fgetc) - 從文件指針中讀取字符
* [`fseek `](https://www.php.net/manual/zh/function.fseek) - 在文件指針中定位
## **加密**
<br>
<br>
<br>
<br>
<hr>
<br>
未完待續……
- PHP
- PHP 核心架構
- PHP 生命周期
- PHP-FPM 詳解
- PHP-FPM 配置優化
- PHP 命名空間和自動加載
- PHP 運行模式
- PHP 的 Buffer(緩沖區)
- php.ini 配置文件參數優化
- 常見面試題
- 常用函數
- 幾種排序算法
- PHP - 框架
- Laravel
- Laravel 生命周期
- ThinkPHP
- MySQL
- 常見問題
- MySQL 索引
- 事務
- 鎖機制
- Explain 使用分析
- MySQL 高性能優化規范
- UNION 與 UNION ALL
- MySQL報錯:sql_mode=only_full_group_by
- MySQL 默認的 sql_mode 詳解
- 正則表達式
- Redis
- Redis 知識
- 持久化
- 主從復制、哨兵、集群
- Redis 緩存擊穿、穿透、雪崩
- Redis 分布式鎖
- RedisBloom
- 網絡
- 計算機網絡模型
- TCP
- UDP
- HTTP
- HTTPS
- WebSocket
- 常見幾種網絡攻擊方式
- Nginx
- 狀態碼
- 配置文件
- Nginx 代理+負載均衡
- Nginx 緩存
- Nginx 優化
- Nginx 配置 SSL 證書
- Linux
- 常用命令
- Vim 常用操作命令
- Supervisor 進程管理
- CentOS與Ubuntu系統區別
- Java
- 消息隊列
- 運維
- RAID 磁盤陣列
- 邏輯分區管理 LVM
- 業務
- 標準通信接口設計
- 業務邏輯開發套路的三板斧
- 微信小程序登錄流程
- 7種Web實時消息推送方案
- 用戶簽到
- 用戶注冊-短信驗證碼
- SQLServer 刪除同一天用戶重復簽到
- 軟件研發完整流程
- 前端
- Redux
- 其他
- 百度云盤大文件下載
- 日常報錯記錄
- GIT
- SSL certificate problem: unable to get local issuer certificate
- NPM
- reason: connect ECONNREFUSED 127.0.0.1:31181
- SVN
- SVN客戶端無法連接SVN服務器,主機積極拒絕
- Python
- 基礎
- pyecharts圖表
- 對象
- 數據庫
- PySpark
- 多線程
- 正則
- Hadoop
- 概述
- HDFS