├── .gitignore ├── assets └── index.css ├── functions └── index.md ├── index.html └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | spider -------------------------------------------------------------------------------- /assets/index.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | div { 6 | height: 200px; 7 | width: 200px; 8 | height: auto; 9 | width: auto; 10 | } 11 | div.container { 12 | border : 0; 13 | } 14 | div.navigation { 15 | width: 300px; 16 | position: fixed; 17 | padding: 60px 0px; 18 | text-align: center; 19 | } 20 | div.content { 21 | border-left: 1px solid black; 22 | margin-left: 300px; 23 | padding: 50px 0 50px 35px; 24 | } -------------------------------------------------------------------------------- /functions/index.md: -------------------------------------------------------------------------------- 1 | ### [数组](#数组-1) 2 | ### [字符串](#字符串-1) 3 | ### [多字节字符串](#多字节字符串-1) 4 | ### [变量处理](#变量处理-1) 5 | ### [文件系统](#文件系统-1) 6 | ### [目录处理](#目录处理-1) 7 | ### [数学](#数学-1) 8 | ### [类和对象](#类和对象-1) 9 | ### [字符类型检测](#字符类型检测-1) 10 | ### [日期和时间](#日期和时间-1) 11 | ### [CURL](#CURL-1) 12 | ### [过滤器](#过滤器-1) 13 | ### [函数处理](#函数处理-1) 14 | ### [正则处理](#正则处理-1) 15 | ### [网络](#网络-1) 16 | ### [程序执行](#程序执行-1) 17 | ### [PHP选项和信息](#PHP选项和信息-1) 18 | ### [错误处理](#错误处理-1) 19 | ### [输出缓冲控制](#输出缓冲控制-1) 20 | ### [密码散列算法](#密码散列算法-1) 21 | ### [Session](#Session-1) 22 | ### [JSON](#JSON-1) 23 | ### [Stream](#Stream-1) 24 | ### [SPL](#SPL-1) 25 | ### [BCMath](#BCMath-1) 26 | ### [杂项](#杂项-1) 27 | 28 |

数组

29 | 30 | - [array_change_key_case](https://www.php.net/manual/zh/function.array-change-key-case.php) — 将数组中的所有键名修改为全大写或小写 31 | - [array_chunk](https://www.php.net/manual/zh/function.array-chunk.php) — 将一个数组分割成多个 32 | - [array_column](https://www.php.net/manual/zh/function.array-column.php) — 返回数组中指定的一列 33 | - [array_combine](https://www.php.net/manual/zh/function.array-combine.php) — 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值 34 | - [array_count_values](https://www.php.net/manual/zh/function.array-count-values.php) — 统计数组中所有的值 35 | - [array_diff_assoc](https://www.php.net/manual/zh/function.array-diff-assoc.php) — 带索引检查计算数组的差集 36 | - [array_diff_key](https://www.php.net/manual/zh/function.array-diff-key.php) — 使用键名比较计算数组的差集 37 | - [array_diff_uassoc](https://www.php.net/manual/zh/function.array-diff-uassoc.php) — 用用户提供的回调函数做索引检查来计算数组的差集 38 | - [array_diff_ukey](https://www.php.net/manual/zh/function.array-diff-ukey.php) — 用回调函数对键名比较计算数组的差集 39 | - [array_diff](https://www.php.net/manual/zh/function.array-diff.php) — 计算数组的差集 40 | - [array_fill_keys](https://www.php.net/manual/zh/function.array-fill-keys.php) — 使用指定的键和值填充数组 41 | - [array_fill](https://www.php.net/manual/zh/function.array-fill.php) — 用给定的值填充数组 42 | - [array_filter](https://www.php.net/manual/zh/function.array-filter.php) — 用回调函数过滤数组中的单元 43 | - [array_flip](https://www.php.net/manual/zh/function.array-flip.php) — 交换数组中的键和值 44 | - [array_intersect_assoc](https://www.php.net/manual/zh/function.array-intersect-assoc.php) — 带索引检查计算数组的交集 45 | - [array_intersect_key](https://www.php.net/manual/zh/function.array-intersect-key.php) — 使用键名比较计算数组的交集 46 | - [array_intersect_uassoc](https://www.php.net/manual/zh/function.array-intersect-uassoc.php) — 带索引检查计算数组的交集,用回调函数比较索引 47 | - [array_intersect_ukey](https://www.php.net/manual/zh/function.array-intersect-ukey.php) — 用回调函数比较键名来计算数组的交集 48 | - [array_intersect](https://www.php.net/manual/zh/function.array-intersect.php) — 计算数组的交集 49 | - [array_key_exists](https://www.php.net/manual/zh/function.array-key-exists.php) — 检查数组里是否有指定的键名或索引 50 | - [array_key_first](https://www.php.net/manual/zh/function.array-key-first.php) — Gets the first key of an array 51 | - [array_key_last](https://www.php.net/manual/zh/function.array-key-last.php) — Gets the last key of an array 52 | - [array_keys](https://www.php.net/manual/zh/function.array-keys.php) — 返回数组中部分的或所有的键名 53 | - [array_map](https://www.php.net/manual/zh/function.array-map.php) — 为数组的每个元素应用回调函数 54 | - [array_merge_recursive](https://www.php.net/manual/zh/function.array-merge-recursive.php) — 递归地合并一个或多个数组 55 | - [array_merge](https://www.php.net/manual/zh/function.array-merge.php) — 合并一个或多个数组 56 | - [array_multisort](https://www.php.net/manual/zh/function.array-multisort.php) — 对多个数组或多维数组进行排序 57 | - [array_pad](https://www.php.net/manual/zh/function.array-pad.php) — 以指定长度将一个值填充进数组 58 | - [array_pop](https://www.php.net/manual/zh/function.array-pop.php) — 弹出数组最后一个单元(出栈) 59 | - [array_product](https://www.php.net/manual/zh/function.array-product.php) — 计算数组中所有值的乘积 60 | - [array_push](https://www.php.net/manual/zh/function.array-push.php) — 将一个或多个单元压入数组的末尾(入栈) 61 | - [array_rand](https://www.php.net/manual/zh/function.array-rand.php) — 从数组中随机取出一个或多个单元 62 | - [array_reduce](https://www.php.net/manual/zh/function.array-reduce.php) — 用回调函数迭代地将数组简化为单一的值 63 | - [array_replace_recursive](https://www.php.net/manual/zh/function.array-replace-recursive.php) — 使用传递的数组递归替换第一个数组的元素 64 | - [array_replace](https://www.php.net/manual/zh/function.array-replace.php) — 使用传递的数组替换第一个数组的元素 65 | - [array_reverse](https://www.php.net/manual/zh/function.array-reverse.php) — 返回单元顺序相反的数组 66 | - [array_search](https://www.php.net/manual/zh/function.array-search.php) — 在数组中搜索给定的值,如果成功则返回首个相应的键名 67 | - [array_shift](https://www.php.net/manual/zh/function.array-shift.php) — 将数组开头的单元移出数组 68 | - [array_slice](https://www.php.net/manual/zh/function.array-slice.php) — 从数组中取出一段 69 | - [array_splice](https://www.php.net/manual/zh/function.array-splice.php) — 去掉数组中的某一部分并用其它值取代 70 | - [array_sum](https://www.php.net/manual/zh/function.array-sum.php) — 对数组中所有值求和 71 | - [array_udiff_assoc](https://www.php.net/manual/zh/function.array-udiff-assoc.php) — 带索引检查计算数组的差集,用回调函数比较数据 72 | - [array_udiff_uassoc](https://www.php.net/manual/zh/function.array-udiff-uassoc.php) — 带索引检查计算数组的差集,用回调函数比较数据和索引 73 | - [array_udiff](https://www.php.net/manual/zh/function.array-udiff.php) — 用回调函数比较数据来计算数组的差集 74 | - [array_uintersect_assoc](https://www.php.net/manual/zh/function.array-uintersect-assoc.php) — 带索引检查计算数组的交集,用回调函数比较数据 75 | - [array_uintersect_uassoc](https://www.php.net/manual/zh/function.array-uintersect-uassoc.php) — 带索引检查计算数组的交集,用单独的回调函数比较数据和索引 76 | - [array_uintersect](https://www.php.net/manual/zh/function.array-uintersect.php) — 计算数组的交集,用回调函数比较数据 77 | - [array_unique](https://www.php.net/manual/zh/function.array-unique.php) — 移除数组中重复的值 78 | - [array_unshift](https://www.php.net/manual/zh/function.array-unshift.php) — 在数组开头插入一个或多个单元 79 | - [array_values](https://www.php.net/manual/zh/function.array-values.php) — 返回数组中所有的值 80 | - [array_walk_recursive](https://www.php.net/manual/zh/function.array-walk-recursive.php) — 对数组中的每个成员递归地应用用户函数 81 | - [array_walk](https://www.php.net/manual/zh/function.array-walk.php) — 使用用户自定义函数对数组中的每个元素做回调处理 82 | - [array](https://www.php.net/manual/zh/function.array.php) — 新建一个数组 83 | - [arsort](https://www.php.net/manual/zh/function.arsort.php) — 对数组进行逆向排序并保持索引关系 84 | - [asort](https://www.php.net/manual/zh/function.asort.php) — 对数组进行排序并保持索引关系 85 | - [compact](https://www.php.net/manual/zh/function.compact.php) — 建立一个数组,包括变量名和它们的值 86 | - [count](https://www.php.net/manual/zh/function.count.php) — 计算数组中的单元数目,或对象中的属性个数 87 | - [current](https://www.php.net/manual/zh/function.current.php) — 返回数组中的当前单元 88 | - [each](https://www.php.net/manual/zh/function.each.php) — 返回数组中当前的键/值对并将数组指针向前移动一步 89 | - [end](https://www.php.net/manual/zh/function.end.php) — 将数组的内部指针指向最后一个单元 90 | - [extract](https://www.php.net/manual/zh/function.extract.php) — 从数组中将变量导入到当前的符号表 91 | - [in_array](https://www.php.net/manual/zh/function.in-array.php) — 检查数组中是否存在某个值 92 | - [key_exists](https://www.php.net/manual/zh/function.key-exists.php) — 别名 array_key_exists 93 | - [key](https://www.php.net/manual/zh/function.key.php) — 从关联数组中取得键名 94 | - [krsort](https://www.php.net/manual/zh/function.krsort.php) — 对数组按照键名逆向排序 95 | - [ksort](https://www.php.net/manual/zh/function.ksort.php) — 对数组按照键名排序 96 | - [list](https://www.php.net/manual/zh/function.list.php) — 把数组中的值赋给一组变量 97 | - [natcasesort](https://www.php.net/manual/zh/function.natcasesort.php) — 用“自然排序”算法对数组进行不区分大小写字母的排序 98 | - [natsort](https://www.php.net/manual/zh/function.natsort.php) — 用“自然排序”算法对数组排序 99 | - [next](https://www.php.net/manual/zh/function.next.php) — 将数组中的内部指针向前移动一位 100 | - [pos](https://www.php.net/manual/zh/function.pos.php) — current 的别名 101 | - [prev](https://www.php.net/manual/zh/function.prev.php) — 将数组的内部指针倒回一位 102 | - [range](https://www.php.net/manual/zh/function.range.php) — 根据范围创建数组,包含指定的元素 103 | - [reset](https://www.php.net/manual/zh/function.reset.php) — 将数组的内部指针指向第一个单元 104 | - [rsort](https://www.php.net/manual/zh/function.rsort.php) — 对数组逆向排序 105 | - [shuffle](https://www.php.net/manual/zh/function.shuffle.php) — 打乱数组 106 | - [sizeof](https://www.php.net/manual/zh/function.sizeof.php) — count 的别名 107 | - [sort](https://www.php.net/manual/zh/function.sort.php) — 对数组排序 108 | - [uasort](https://www.php.net/manual/zh/function.uasort.php) — 使用用户自定义的比较函数对数组中的值进行排序并保持索引关联 109 | - [uksort](https://www.php.net/manual/zh/function.uksort.php) — 使用用户自定义的比较函数对数组中的键名进行排序 110 | - [usort](https://www.php.net/manual/zh/function.usort.php) — 使用用户自定义的比较函数对数组中的值进行排序 111 | 112 |

字符串

113 | 114 | - [addcslashes](https://www.php.net/manual/zh/function.addcslashes.php) — 以 C 语言风格使用反斜线转义字符串中的字符 115 | - [addslashes](https://www.php.net/manual/zh/function.addslashes.php) — 使用反斜线引用字符串 116 | - [bin2hex](https://www.php.net/manual/zh/function.bin2hex.php) — 函数把包含数据的二进制字符串转换为十六进制值 117 | - [chop](https://www.php.net/manual/zh/function.chop.php) — rtrim 的别名 118 | - [chr](https://www.php.net/manual/zh/function.chr.php) — 返回指定的字符 119 | - [chunk_split](https://www.php.net/manual/zh/function.chunk-split.php) — 将字符串分割成小块 120 | - [convert_cyr_string](https://www.php.net/manual/zh/function.convert-cyr-string.php) — 将字符由一种 Cyrillic 字符转换成另一种 121 | - [convert_uudecode](https://www.php.net/manual/zh/function.convert-uudecode.php) — 解码一个 uuencode 编码的字符串 122 | - [convert_uuencode](https://www.php.net/manual/zh/function.convert-uuencode.php) — 使用 uuencode 编码一个字符串 123 | - [count_chars](https://www.php.net/manual/zh/function.count-chars.php) — 返回字符串所用字符的信息 124 | - [crc32](https://www.php.net/manual/zh/function.crc32.php) — 计算一个字符串的 crc32 多项式 125 | - [crypt](https://www.php.net/manual/zh/function.crypt.php) — 单向字符串散列 126 | - [echo](https://www.php.net/manual/zh/function.echo.php) — 输出一个或多个字符串 127 | - [explode](https://www.php.net/manual/zh/function.explode.php) — 使用一个字符串分割另一个字符串 128 | - [fprintf](https://www.php.net/manual/zh/function.fprintf.php) — 将格式化后的字符串写入到流 129 | - [get_html_translation_table](https://www.php.net/manual/zh/function.get-html-translation-table.php) — 返回使用 htmlspecialchars 和 htmlentities 后的转换表 130 | - [hebrev](https://www.php.net/manual/zh/function.hebrev.php) — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew) 131 | - [hebrevc](https://www.php.net/manual/zh/function.hebrevc.php) — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符 132 | - [hex2bin](https://www.php.net/manual/zh/function.hex2bin.php) — 转换十六进制字符串为二进制字符串 133 | - [html_entity_decode](https://www.php.net/manual/zh/function.html-entity-decode.php) — Convert HTML entities to their corresponding characters 134 | - [htmlentities](https://www.php.net/manual/zh/function.htmlentities.php) — 将字符转换为 HTML 转义字符 135 | - [htmlspecialchars_decode](https://www.php.net/manual/zh/function.htmlspecialchars-decode.php) — 将特殊的 HTML 实体转换回普通字符 136 | - [htmlspecialchars](https://www.php.net/manual/zh/function.htmlspecialchars.php) — 将特殊字符转换为 HTML 实体 137 | - [implode](https://www.php.net/manual/zh/function.implode.php) — 将一个一维数组的值转化为字符串 138 | - [join](https://www.php.net/manual/zh/function.join.php) — 别名 implode 139 | - [lcfirst](https://www.php.net/manual/zh/function.lcfirst.php) — 使一个字符串的第一个字符小写 140 | - [levenshtein](https://www.php.net/manual/zh/function.levenshtein.php) — 计算两个字符串之间的编辑距离 141 | - [localeconv](https://www.php.net/manual/zh/function.localeconv.php) — Get numeric formatting information 142 | - [ltrim](https://www.php.net/manual/zh/function.ltrim.php) — 删除字符串开头的空白字符(或其他字符) 143 | - [md5_file](https://www.php.net/manual/zh/function.md5-file.php) — 计算指定文件的 MD5 散列值 144 | - [md5](https://www.php.net/manual/zh/function.md5.php) — 计算字符串的 MD5 散列值 145 | - [metaphone](https://www.php.net/manual/zh/function.metaphone.php) — Calculate the metaphone key of a string 146 | - [money_format](https://www.php.net/manual/zh/function.money-format.php) — 将数字格式化成货币字符串 147 | - [nl_langinfo](https://www.php.net/manual/zh/function.nl-langinfo.php) — Query language and locale information 148 | - [nl2br](https://www.php.net/manual/zh/function.nl2br.php) — 在字符串所有新行之前插入 HTML 换行标记 149 | - [number_format](https://www.php.net/manual/zh/function.number-format.php) — 以千位分隔符方式格式化一个数字 150 | - [ord](https://www.php.net/manual/zh/function.ord.php) — 转换字符串第一个字节为 0-255 之间的值 151 | - [parse_str](https://www.php.net/manual/zh/function.parse-str.php) — 将字符串解析成多个变量 152 | - [print](https://www.php.net/manual/zh/function.print.php) — 输出字符串 153 | - [printf](https://www.php.net/manual/zh/function.printf.php) — 输出格式化字符串 154 | - [quoted_printable_decode](https://www.php.net/manual/zh/function.quoted-printable-decode.php) — 将 quoted-printable 字符串转换为 8-bit 字符串 155 | - [quoted_printable_encode](https://www.php.net/manual/zh/function.quoted-printable-encode.php) — 将 8-bit 字符串转换成 quoted-printable 字符串 156 | - [quotemeta](https://www.php.net/manual/zh/function.quotemeta.php) — 转义元字符集 157 | - [rtrim](https://www.php.net/manual/zh/function.rtrim.php) — 删除字符串末端的空白字符(或者其他字符) 158 | - [setlocale](https://www.php.net/manual/zh/function.setlocale.php) — 设置地区信息 159 | - [sha1_file](https://www.php.net/manual/zh/function.sha1-file.php) — 计算文件的 sha1 散列值 160 | - [sha1](https://www.php.net/manual/zh/function.sha1.php) — 计算字符串的 sha1 散列值 161 | - [similar_text](https://www.php.net/manual/zh/function.similar-text.php) — 计算两个字符串的相似度 162 | - [soundex](https://www.php.net/manual/zh/function.soundex.php) — Calculate the soundex key of a string 163 | - [sprintf](https://www.php.net/manual/zh/function.sprintf.php) — Return a formatted string 164 | - [sscanf](https://www.php.net/manual/zh/function.sscanf.php) — 根据指定格式解析输入的字符 165 | - [str_getcsv](https://www.php.net/manual/zh/function.str-getcsv.php) — 解析 CSV 字符串为一个数组 166 | - [str_ireplace](https://www.php.net/manual/zh/function.str-ireplace.php) — str_replace 的忽略大小写版本 167 | - [str_pad](https://www.php.net/manual/zh/function.str-pad.php) — 使用另一个字符串填充字符串为指定长度 168 | - [str_repeat](https://www.php.net/manual/zh/function.str-repeat.php) — 重复一个字符串 169 | - [str_replace](https://www.php.net/manual/zh/function.str-replace.php) — 子字符串替换 170 | - [str_rot13](https://www.php.net/manual/zh/function.str-rot13.php) — 对字符串执行 ROT13 转换 171 | - [str_shuffle](https://www.php.net/manual/zh/function.str-shuffle.php) — 随机打乱一个字符串 172 | - [str_split](https://www.php.net/manual/zh/function.str-split.php) — 将字符串转换为数组 173 | - [str_word_count](https://www.php.net/manual/zh/function.str-word-count.php) — 返回字符串中单词的使用情况 174 | - [strcasecmp](https://www.php.net/manual/zh/function.strcasecmp.php) — 二进制安全比较字符串(不区分大小写) 175 | - [strchr](https://www.php.net/manual/zh/function.strchr.php) — 别名 strstr 176 | - [strcmp](https://www.php.net/manual/zh/function.strcmp.php) — 二进制安全字符串比较 177 | - [strcoll](https://www.php.net/manual/zh/function.strcoll.php) — 基于区域设置的字符串比较 178 | - [strcspn](https://www.php.net/manual/zh/function.strcspn.php) — 获取不匹配遮罩的起始子字符串的长度 179 | - [strip_tags](https://www.php.net/manual/zh/function.strip-tags.php) — 从字符串中去除 HTML 和 PHP 标记 180 | - [stripcslashes](https://www.php.net/manual/zh/function.stripcslashes.php) — 反引用一个使用 addcslashes 转义的字符串 181 | - [stripos](https://www.php.net/manual/zh/function.stripos.php) — 查找字符串首次出现的位置(不区分大小写) 182 | - [stripslashes](https://www.php.net/manual/zh/function.stripslashes.php) — 反引用一个引用字符串 183 | - [stristr](https://www.php.net/manual/zh/function.stristr.php) — strstr 函数的忽略大小写版本 184 | - [strlen](https://www.php.net/manual/zh/function.strlen.php) — 获取字符串长度 185 | - [strnatcasecmp](https://www.php.net/manual/zh/function.strnatcasecmp.php) — 使用“自然顺序”算法比较字符串(不区分大小写) 186 | - [strnatcmp](https://www.php.net/manual/zh/function.strnatcmp.php) — 使用自然排序算法比较字符串 187 | - [strncasecmp](https://www.php.net/manual/zh/function.strncasecmp.php) — 二进制安全比较字符串开头的若干个字符(不区分大小写) 188 | - [strncmp](https://www.php.net/manual/zh/function.strncmp.php) — 二进制安全比较字符串开头的若干个字符 189 | - [strpbrk](https://www.php.net/manual/zh/function.strpbrk.php) — 在字符串中查找一组字符的任何一个字符 190 | - [strpos](https://www.php.net/manual/zh/function.strpos.php) — 查找字符串首次出现的位置 191 | - [strrchr](https://www.php.net/manual/zh/function.strrchr.php) — 查找指定字符在字符串中的最后一次出现 192 | - [strrev](https://www.php.net/manual/zh/function.strrev.php) — 反转字符串 193 | - [strripos](https://www.php.net/manual/zh/function.strripos.php) — 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写) 194 | - [strrpos](https://www.php.net/manual/zh/function.strrpos.php) — 计算指定字符串在目标字符串中最后一次出现的位置 195 | - [strspn](https://www.php.net/manual/zh/function.strspn.php) — 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。 196 | - [strstr](https://www.php.net/manual/zh/function.strstr.php) — 查找字符串的首次出现 197 | - [strtok](https://www.php.net/manual/zh/function.strtok.php) — 标记分割字符串 198 | - [strtolower](https://www.php.net/manual/zh/function.strtolower.php) — 将字符串转化为小写 199 | - [strtoupper](https://www.php.net/manual/zh/function.strtoupper.php) — 将字符串转化为大写 200 | - [strtr](https://www.php.net/manual/zh/function.strtr.php) — 转换指定字符 201 | - [substr_compare](https://www.php.net/manual/zh/function.substr-compare.php) — 二进制安全比较字符串(从偏移位置比较指定长度) 202 | - [substr_count](https://www.php.net/manual/zh/function.substr-count.php) — 计算字串出现的次数 203 | - [substr_replace](https://www.php.net/manual/zh/function.substr-replace.php) — 替换字符串的子串 204 | - [substr](https://www.php.net/manual/zh/function.substr.php) — 返回字符串的子串 205 | - [trim](https://www.php.net/manual/zh/function.trim.php) — 去除字符串首尾处的空白字符(或者其他字符) 206 | - [ucfirst](https://www.php.net/manual/zh/function.ucfirst.php) — 将字符串的首字母转换为大写 207 | - [ucwords](https://www.php.net/manual/zh/function.ucwords.php) — 将字符串中每个单词的首字母转换为大写 208 | - [vfprintf](https://www.php.net/manual/zh/function.vfprintf.php) — 将格式化字符串写入流 209 | - [vprintf](https://www.php.net/manual/zh/function.vprintf.php) — 输出格式化字符串 210 | - [vsprintf](https://www.php.net/manual/zh/function.vsprintf.php) — 返回格式化字符串 211 | - [wordwrap](https://www.php.net/manual/zh/function.wordwrap.php) — 打断字符串为指定数量的字串 212 | 213 |

多字节字符串

214 | 215 | - [mb_check_encoding](https://www.php.net/manual/zh/function.mb-check-encoding.php) — 检查字符串在指定的编码里是否有效 216 | - [mb_chr](https://www.php.net/manual/zh/function.mb-chr.php) — Get a specific character 217 | - [mb_convert_case](https://www.php.net/manual/zh/function.mb-convert-case.php) — 对字符串进行大小写转换 218 | - [mb_convert_encoding](https://www.php.net/manual/zh/function.mb-convert-encoding.php) — 转换字符的编码 219 | - [mb_convert_kana](https://www.php.net/manual/zh/function.mb-convert-kana.php) — Convert "kana" one from another ("zen-kaku", "han-kaku" and more) 220 | - [mb_convert_variables](https://www.php.net/manual/zh/function.mb-convert-variables.php) — 转换一个或多个变量的字符编码 221 | - [mb_decode_mimeheader](https://www.php.net/manual/zh/function.mb-decode-mimeheader.php) — 解码 MIME 头字段中的字符串 222 | - [mb_decode_numericentity](https://www.php.net/manual/zh/function.mb-decode-numericentity.php) — 根据 HTML 数字字符串解码成字符 223 | - [mb_detect_encoding](https://www.php.net/manual/zh/function.mb-detect-encoding.php) — 检测字符的编码 224 | - [mb_detect_order](https://www.php.net/manual/zh/function.mb-detect-order.php) — 设置/获取 字符编码的检测顺序 225 | - [mb_encode_mimeheader](https://www.php.net/manual/zh/function.mb-encode-mimeheader.php) — 为 MIME 头编码字符串 226 | - [mb_encode_numericentity](https://www.php.net/manual/zh/function.mb-encode-numericentity.php) — Encode character to HTML numeric string reference 227 | - [mb_encoding_aliases](https://www.php.net/manual/zh/function.mb-encoding-aliases.php) — Get aliases of a known encoding type 228 | - [mb_ereg_match](https://www.php.net/manual/zh/function.mb-ereg-match.php) — Regular expression match for multibyte string 229 | - [mb_ereg_replace_callback](https://www.php.net/manual/zh/function.mb-ereg-replace-callback.php) — Perform a regular expression search and replace with multibyte support using a callback 230 | - [mb_ereg_replace](https://www.php.net/manual/zh/function.mb-ereg-replace.php) — Replace regular expression with multibyte support 231 | - [mb_ereg_search_getpos](https://www.php.net/manual/zh/function.mb-ereg-search-getpos.php) — Returns start point for next regular expression match 232 | - [mb_ereg_search_getregs](https://www.php.net/manual/zh/function.mb-ereg-search-getregs.php) — Retrieve the result from the last multibyte regular expression match 233 | - [mb_ereg_search_init](https://www.php.net/manual/zh/function.mb-ereg-search-init.php) — Setup string and regular expression for a multibyte regular expression match 234 | - [mb_ereg_search_pos](https://www.php.net/manual/zh/function.mb-ereg-search-pos.php) — Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string 235 | - [mb_ereg_search_regs](https://www.php.net/manual/zh/function.mb-ereg-search-regs.php) — Returns the matched part of a multibyte regular expression 236 | - [mb_ereg_search_setpos](https://www.php.net/manual/zh/function.mb-ereg-search-setpos.php) — Set start point of next regular expression match 237 | - [mb_ereg_search](https://www.php.net/manual/zh/function.mb-ereg-search.php) — Multibyte regular expression match for predefined multibyte string 238 | - [mb_ereg](https://www.php.net/manual/zh/function.mb-ereg.php) — Regular expression match with multibyte support 239 | - [mb_eregi_replace](https://www.php.net/manual/zh/function.mb-eregi-replace.php) — Replace regular expression with multibyte support ignoring case 240 | - [mb_eregi](https://www.php.net/manual/zh/function.mb-eregi.php) — Regular expression match ignoring case with multibyte support 241 | - [mb_get_info](https://www.php.net/manual/zh/function.mb-get-info.php) — 获取 mbstring 的内部设置 242 | - [mb_http_input](https://www.php.net/manual/zh/function.mb-http-input.php) — 检测 HTTP 输入字符编码 243 | - [mb_http_output](https://www.php.net/manual/zh/function.mb-http-output.php) — 设置/获取 HTTP 输出字符编码 244 | - [mb_internal_encoding](https://www.php.net/manual/zh/function.mb-internal-encoding.php) — 设置/获取内部字符编码 245 | - [mb_language](https://www.php.net/manual/zh/function.mb-language.php) — 设置/获取当前的语言 246 | - [mb_list_encodings](https://www.php.net/manual/zh/function.mb-list-encodings.php) — 返回所有支持编码的数组 247 | - [mb_ord](https://www.php.net/manual/zh/function.mb-ord.php) — Get code point of character 248 | - [mb_output_handler](https://www.php.net/manual/zh/function.mb-output-handler.php) — 在输出缓冲中转换字符编码的回调函数 249 | - [mb_parse_str](https://www.php.net/manual/zh/function.mb-parse-str.php) — 解析 GET/POST/COOKIE 数据并设置全局变量 250 | - [mb_preferred_mime_name](https://www.php.net/manual/zh/function.mb-preferred-mime-name.php) — 获取 MIME 字符串 251 | - [mb_regex_encoding](https://www.php.net/manual/zh/function.mb-regex-encoding.php) — Set/Get character encoding for multibyte regex 252 | - [mb_regex_set_options](https://www.php.net/manual/zh/function.mb-regex-set-options.php) — Set/Get the default options for mbregex functions 253 | - [mb_scrub](https://www.php.net/manual/zh/function.mb-scrub.php) — Description 254 | - [mb_send_mail](https://www.php.net/manual/zh/function.mb-send-mail.php) — 发送编码过的邮件 255 | - [mb_split](https://www.php.net/manual/zh/function.mb-split.php) — 使用正则表达式分割多字节字符串 256 | - [mb_strcut](https://www.php.net/manual/zh/function.mb-strcut.php) — 获取字符的一部分 257 | - [mb_strimwidth](https://www.php.net/manual/zh/function.mb-strimwidth.php) — 获取按指定宽度截断的字符串 258 | - [mb_stripos](https://www.php.net/manual/zh/function.mb-stripos.php) — 大小写不敏感地查找字符串在另一个字符串中首次出现的位置 259 | - [mb_stristr](https://www.php.net/manual/zh/function.mb-stristr.php) — 大小写不敏感地查找字符串在另一个字符串里的首次出现 260 | - [mb_strlen](https://www.php.net/manual/zh/function.mb-strlen.php) — 获取字符串的长度 261 | - [mb_strpos](https://www.php.net/manual/zh/function.mb-strpos.php) — 查找字符串在另一个字符串中首次出现的位置 262 | - [mb_strrchr](https://www.php.net/manual/zh/function.mb-strrchr.php) — 查找指定字符在另一个字符串中最后一次的出现 263 | - [mb_strrichr](https://www.php.net/manual/zh/function.mb-strrichr.php) — 大小写不敏感地查找指定字符在另一个字符串中最后一次的出现 264 | - [mb_strripos](https://www.php.net/manual/zh/function.mb-strripos.php) — 大小写不敏感地在字符串中查找一个字符串最后出现的位置 265 | - [mb_strrpos](https://www.php.net/manual/zh/function.mb-strrpos.php) — 查找字符串在一个字符串中最后出现的位置 266 | - [mb_strstr](https://www.php.net/manual/zh/function.mb-strstr.php) — 查找字符串在另一个字符串里的首次出现 267 | - [mb_strtolower](https://www.php.net/manual/zh/function.mb-strtolower.php) — 使字符串小写 268 | - [mb_strtoupper](https://www.php.net/manual/zh/function.mb-strtoupper.php) — 使字符串大写 269 | - [mb_strwidth](https://www.php.net/manual/zh/function.mb-strwidth.php) — 返回字符串的宽度 270 | - [mb_substitute_character](https://www.php.net/manual/zh/function.mb-substitute-character.php) — 设置/获取替代字符 271 | - [mb_substr_count](https://www.php.net/manual/zh/function.mb-substr-count.php) — 统计字符串出现的次数 272 | - [mb_substr](https://www.php.net/manual/zh/function.mb-substr.php) — 获取部分字符串 273 | 274 |

变量处理

275 | 276 | - [boolval](https://www.php.net/manual/zh/function.boolval.php) — 获取变量的布尔值 277 | - [debug_zval_dump](https://www.php.net/manual/zh/function.debug-zval-dump.php) — Dumps a string representation of an internal zend value to output 278 | - [doubleval](https://www.php.net/manual/zh/function.doubleval.php) — floatval 的别名 279 | - [empty](https://www.php.net/manual/zh/function.empty.php) — 检查一个变量是否为空 280 | - [floatval](https://www.php.net/manual/zh/function.floatval.php) — 获取变量的浮点值 281 | - [get_defined_vars](https://www.php.net/manual/zh/function.get-defined-vars.php) — 返回由所有已定义变量所组成的数组 282 | - [get_resource_type](https://www.php.net/manual/zh/function.get-resource-type.php) — 返回资源(resource)类型 283 | - [gettype](https://www.php.net/manual/zh/function.gettype.php) — 获取变量的类型 284 | - [import_request_variables](https://www.php.net/manual/zh/function.import-request-variables.php) — 将 GET/POST/Cookie 变量导入到全局作用域中 285 | - [intval](https://www.php.net/manual/zh/function.intval.php) — 获取变量的整数值 286 | - [is_array](https://www.php.net/manual/zh/function.is-array.php) — 检测变量是否是数组 287 | - [is_bool](https://www.php.net/manual/zh/function.is-bool.php) — 检测变量是否是布尔型 288 | - [is_callable](https://www.php.net/manual/zh/function.is-callable.php) — 检测参数是否为合法的可调用结构 289 | - [is_countable](https://www.php.net/manual/zh/function.is-countable.php) — Verify that the contents of a variable is a countable value 290 | - [is_double](https://www.php.net/manual/zh/function.is-double.php) — is_float 的别名 291 | - [is_float](https://www.php.net/manual/zh/function.is-float.php) — 检测变量是否是浮点型 292 | - [is_int](https://www.php.net/manual/zh/function.is-int.php) — 检测变量是否是整数 293 | - [is_integer](https://www.php.net/manual/zh/function.is-integer.php) — is_int 的别名 294 | - [is_iterable](https://www.php.net/manual/zh/function.is-iterable.php) — Verify that the contents of a variable is an iterable value 295 | - [is_long](https://www.php.net/manual/zh/function.is-long.php) — is_int 的别名 296 | - [is_null](https://www.php.net/manual/zh/function.is-null.php) — 检测变量是否为 NULL 297 | - [is_numeric](https://www.php.net/manual/zh/function.is-numeric.php) — 检测变量是否为数字或数字字符串 298 | - [is_object](https://www.php.net/manual/zh/function.is-object.php) — 检测变量是否是一个对象 299 | - [is_real](https://www.php.net/manual/zh/function.is-real.php) — is_float 的别名 300 | - [is_resource](https://www.php.net/manual/zh/function.is-resource.php) — 检测变量是否为资源类型 301 | - [is_scalar](https://www.php.net/manual/zh/function.is-scalar.php) — 检测变量是否是一个标量 302 | - [is_string](https://www.php.net/manual/zh/function.is-string.php) — 检测变量是否是字符串 303 | - [isset](https://www.php.net/manual/zh/function.isset.php) — 检测变量是否已设置并且非 NULL 304 | - [print_r](https://www.php.net/manual/zh/function.print-r.php) — 以易于理解的格式打印变量。 305 | - [serialize](https://www.php.net/manual/zh/function.serialize.php) — 产生一个可存储的值的表示 306 | - [settype](https://www.php.net/manual/zh/function.settype.php) — 设置变量的类型 307 | - [strval](https://www.php.net/manual/zh/function.strval.php) — 获取变量的字符串值 308 | - [unserialize](https://www.php.net/manual/zh/function.unserialize.php) — 从已存储的表示中创建 PHP 的值 309 | - [unset](https://www.php.net/manual/zh/function.unset.php) — 释放给定的变量 310 | - [var_dump](https://www.php.net/manual/zh/function.var-dump.php) — 打印变量的相关信息 311 | - [var_export](https://www.php.net/manual/zh/function.var-export.php) — 输出或返回一个变量的字符串表示 312 | 313 |

文件系统

314 | 315 | - [basename](https://www.php.net/manual/zh/function.basename.php) — 返回路径中的文件名部分 316 | - [chgrp](https://www.php.net/manual/zh/function.chgrp.php) — 改变文件所属的组 317 | - [chmod](https://www.php.net/manual/zh/function.chmod.php) — 改变文件模式 318 | - [chown](https://www.php.net/manual/zh/function.chown.php) — 改变文件的所有者 319 | - [clearstatcache](https://www.php.net/manual/zh/function.clearstatcache.php) — 清除文件状态缓存 320 | - [copy](https://www.php.net/manual/zh/function.copy.php) — 拷贝文件 321 | - [delete](https://www.php.net/manual/zh/function.delete.php) — 参见 unlink 或 unset 322 | - [dirname](https://www.php.net/manual/zh/function.dirname.php) — 返回路径中的目录部分 323 | - [disk_free_space](https://www.php.net/manual/zh/function.disk-free-space.php) — 返回目录中的可用空间 324 | - [disk_total_space](https://www.php.net/manual/zh/function.disk-total-space.php) — 返回一个目录的磁盘总大小 325 | - [diskfreespace](https://www.php.net/manual/zh/function.diskfreespace.php) — disk_free_space 的别名 326 | - [fclose](https://www.php.net/manual/zh/function.fclose.php) — 关闭一个已打开的文件指针 327 | - [feof](https://www.php.net/manual/zh/function.feof.php) — 测试文件指针是否到了文件结束的位置 328 | - [fflush](https://www.php.net/manual/zh/function.fflush.php) — 将缓冲内容输出到文件 329 | - [fgetc](https://www.php.net/manual/zh/function.fgetc.php) — 从文件指针中读取字符 330 | - [fgetcsv](https://www.php.net/manual/zh/function.fgetcsv.php) — 从文件指针中读入一行并解析 CSV 字段 331 | - [fgets](https://www.php.net/manual/zh/function.fgets.php) — 从文件指针中读取一行 332 | - [fgetss](https://www.php.net/manual/zh/function.fgetss.php) — 从文件指针中读取一行并过滤掉 HTML 标记 333 | - [file_exists](https://www.php.net/manual/zh/function.file-exists.php) — 检查文件或目录是否存在 334 | - [file_get_contents](https://www.php.net/manual/zh/function.file-get-contents.php) — 将整个文件读入一个字符串 335 | - [file_put_contents](https://www.php.net/manual/zh/function.file-put-contents.php) — 将一个字符串写入文件 336 | - [file](https://www.php.net/manual/zh/function.file.php) — 把整个文件读入一个数组中 337 | - [fileatime](https://www.php.net/manual/zh/function.fileatime.php) — 取得文件的上次访问时间 338 | - [filectime](https://www.php.net/manual/zh/function.filectime.php) — 取得文件的 inode 修改时间 339 | - [filegroup](https://www.php.net/manual/zh/function.filegroup.php) — 取得文件的组 340 | - [fileinode](https://www.php.net/manual/zh/function.fileinode.php) — 取得文件的 inode 341 | - [filemtime](https://www.php.net/manual/zh/function.filemtime.php) — 取得文件修改时间 342 | - [fileowner](https://www.php.net/manual/zh/function.fileowner.php) — 取得文件的所有者 343 | - [fileperms](https://www.php.net/manual/zh/function.fileperms.php) — 取得文件的权限 344 | - [filesize](https://www.php.net/manual/zh/function.filesize.php) — 取得文件大小 345 | - [filetype](https://www.php.net/manual/zh/function.filetype.php) — 取得文件类型 346 | - [flock](https://www.php.net/manual/zh/function.flock.php) — 轻便的咨询文件锁定 347 | - [fnmatch](https://www.php.net/manual/zh/function.fnmatch.php) — 用模式匹配文件名 348 | - [fopen](https://www.php.net/manual/zh/function.fopen.php) — 打开文件或者 URL 349 | - [fpassthru](https://www.php.net/manual/zh/function.fpassthru.php) — 输出文件指针处的所有剩余数据 350 | - [fputcsv](https://www.php.net/manual/zh/function.fputcsv.php) — 将行格式化为 CSV 并写入文件指针 351 | - [fputs](https://www.php.net/manual/zh/function.fputs.php) — fwrite 的别名 352 | - [fread](https://www.php.net/manual/zh/function.fread.php) — 读取文件(可安全用于二进制文件) 353 | - [fscanf](https://www.php.net/manual/zh/function.fscanf.php) — 从文件中格式化输入 354 | - [fseek](https://www.php.net/manual/zh/function.fseek.php) — 在文件指针中定位 355 | - [fstat](https://www.php.net/manual/zh/function.fstat.php) — 通过已打开的文件指针取得文件信息 356 | - [ftell](https://www.php.net/manual/zh/function.ftell.php) — 返回文件指针读/写的位置 357 | - [ftruncate](https://www.php.net/manual/zh/function.ftruncate.php) — 将文件截断到给定的长度 358 | - [fwrite](https://www.php.net/manual/zh/function.fwrite.php) — 写入文件(可安全用于二进制文件) 359 | - [glob](https://www.php.net/manual/zh/function.glob.php) — 寻找与模式匹配的文件路径 360 | - [is_dir](https://www.php.net/manual/zh/function.is-dir.php) — 判断给定文件名是否是一个目录 361 | - [is_executable](https://www.php.net/manual/zh/function.is-executable.php) — 判断给定文件名是否可执行 362 | - [is_file](https://www.php.net/manual/zh/function.is-file.php) — 判断给定文件名是否为一个正常的文件 363 | - [is_link](https://www.php.net/manual/zh/function.is-link.php) — 判断给定文件名是否为一个符号连接 364 | - [is_readable](https://www.php.net/manual/zh/function.is-readable.php) — 判断给定文件名是否可读 365 | - [is_uploaded_file](https://www.php.net/manual/zh/function.is-uploaded-file.php) — 判断文件是否是通过 HTTP POST 上传的 366 | - [is_writable](https://www.php.net/manual/zh/function.is-writable.php) — 判断给定的文件名是否可写 367 | - [is_writeable](https://www.php.net/manual/zh/function.is-writeable.php) — is_writable 的别名 368 | - [lchgrp](https://www.php.net/manual/zh/function.lchgrp.php) — 修改符号链接的所有组 369 | - [lchown](https://www.php.net/manual/zh/function.lchown.php) — 修改符号链接的所有者 370 | - [link](https://www.php.net/manual/zh/function.link.php) — 建立一个硬连接 371 | - [linkinfo](https://www.php.net/manual/zh/function.linkinfo.php) — 获取一个连接的信息 372 | - [lstat](https://www.php.net/manual/zh/function.lstat.php) — 给出一个文件或符号连接的信息 373 | - [mkdir](https://www.php.net/manual/zh/function.mkdir.php) — 新建目录 374 | - [move_uploaded_file](https://www.php.net/manual/zh/function.move-uploaded-file.php) — 将上传的文件移动到新位置 375 | - [parse_ini_file](https://www.php.net/manual/zh/function.parse-ini-file.php) — 解析一个配置文件 376 | - [parse_ini_string](https://www.php.net/manual/zh/function.parse-ini-string.php) — 解析配置字符串 377 | - [pathinfo](https://www.php.net/manual/zh/function.pathinfo.php) — 返回文件路径的信息 378 | - [pclose](https://www.php.net/manual/zh/function.pclose.php) — 关闭进程文件指针 379 | - [popen](https://www.php.net/manual/zh/function.popen.php) — 打开进程文件指针 380 | - [readfile](https://www.php.net/manual/zh/function.readfile.php) — 输出文件 381 | - [readlink](https://www.php.net/manual/zh/function.readlink.php) — 返回符号连接指向的目标 382 | - [realpath_cache_get](https://www.php.net/manual/zh/function.realpath-cache-get.php) — 获取真实目录缓存的详情 383 | - [realpath_cache_size](https://www.php.net/manual/zh/function.realpath-cache-size.php) — 获取真实路径缓冲区的大小 384 | - [realpath](https://www.php.net/manual/zh/function.realpath.php) — 返回规范化的绝对路径名 385 | - [rename](https://www.php.net/manual/zh/function.rename.php) — 重命名一个文件或目录 386 | - [rewind](https://www.php.net/manual/zh/function.rewind.php) — 倒回文件指针的位置 387 | - [rmdir](https://www.php.net/manual/zh/function.rmdir.php) — 删除目录 388 | - [set_file_buffer](https://www.php.net/manual/zh/function.set-file-buffer.php) — stream_set_write_buffer 的别名 389 | - [stat](https://www.php.net/manual/zh/function.stat.php) — 给出文件的信息 390 | - [symlink](https://www.php.net/manual/zh/function.symlink.php) — 建立符号连接 391 | - [tempnam](https://www.php.net/manual/zh/function.tempnam.php) — 建立一个具有唯一文件名的文件 392 | - [tmpfile](https://www.php.net/manual/zh/function.tmpfile.php) — 建立一个临时文件 393 | - [touch](https://www.php.net/manual/zh/function.touch.php) — 设定文件的访问和修改时间 394 | - [umask](https://www.php.net/manual/zh/function.umask.php) — 改变当前的 umask 395 | - [unlink](https://www.php.net/manual/zh/function.unlink.php) — 删除文件 396 | 397 |

目录处理

398 | 399 | - [chdir](https://www.php.net/manual/zh/function.chdir.php) — 改变目录 400 | - [chroot](https://www.php.net/manual/zh/function.chroot.php) — 改变根目录 401 | - [closedir](https://www.php.net/manual/zh/function.closedir.php) — 关闭目录句柄 402 | - [dir](https://www.php.net/manual/zh/function.dir.php) — 返回一个 Directory 类实例 403 | - [getcwd](https://www.php.net/manual/zh/function.getcwd.php) — 取得当前工作目录 404 | - [opendir](https://www.php.net/manual/zh/function.opendir.php) — 打开目录句柄 405 | - [readdir](https://www.php.net/manual/zh/function.readdir.php) — 从目录句柄中读取条目 406 | - [rewinddir](https://www.php.net/manual/zh/function.rewinddir.php) — 倒回目录句柄 407 | - [scandir](https://www.php.net/manual/zh/function.scandir.php) — 列出指定路径中的文件和目录 408 | 409 |

数学

410 | 411 | - [abs](https://www.php.net/manual/zh/function.abs.php) — 绝对值 412 | - [acos](https://www.php.net/manual/zh/function.acos.php) — 反余弦 413 | - [acosh](https://www.php.net/manual/zh/function.acosh.php) — 反双曲余弦 414 | - [asin](https://www.php.net/manual/zh/function.asin.php) — 反正弦 415 | - [asinh](https://www.php.net/manual/zh/function.asinh.php) — 反双曲正弦 416 | - [atan2](https://www.php.net/manual/zh/function.atan2.php) — 两个参数的反正切 417 | - [atan](https://www.php.net/manual/zh/function.atan.php) — 反正切 418 | - [atanh](https://www.php.net/manual/zh/function.atanh.php) — 反双曲正切 419 | - [base_convert](https://www.php.net/manual/zh/function.base-convert.php) — 在任意进制之间转换数字 420 | - [bindec](https://www.php.net/manual/zh/function.bindec.php) — 二进制转换为十进制 421 | - [ceil](https://www.php.net/manual/zh/function.ceil.php) — 进一法取整 422 | - [cos](https://www.php.net/manual/zh/function.cos.php) — 余弦 423 | - [cosh](https://www.php.net/manual/zh/function.cosh.php) — 双曲余弦 424 | - [decbin](https://www.php.net/manual/zh/function.decbin.php) — 十进制转换为二进制 425 | - [dechex](https://www.php.net/manual/zh/function.dechex.php) — 十进制转换为十六进制 426 | - [decoct](https://www.php.net/manual/zh/function.decoct.php) — 十进制转换为八进制 427 | - [deg2rad](https://www.php.net/manual/zh/function.deg2rad.php) — 将角度转换为弧度 428 | - [exp](https://www.php.net/manual/zh/function.exp.php) — 计算 e 的指数 429 | - [expm1](https://www.php.net/manual/zh/function.expm1.php) — 返回 exp(number) - 1,甚至当 number 的值接近零也能计算出准确结果 430 | - [floor](https://www.php.net/manual/zh/function.floor.php) — 舍去法取整 431 | - [fmod](https://www.php.net/manual/zh/function.fmod.php) — 返回除法的浮点数余数 432 | - [getrandmax](https://www.php.net/manual/zh/function.getrandmax.php) — 显示随机数最大的可能值 433 | - [hexdec](https://www.php.net/manual/zh/function.hexdec.php) — 十六进制转换为十进制 434 | - [hypot](https://www.php.net/manual/zh/function.hypot.php) — 计算一直角三角形的斜边长度 435 | - [intdiv](https://www.php.net/manual/zh/function.intdiv.php) — 对除法结果取整 436 | - [is_finite](https://www.php.net/manual/zh/function.is-finite.php) — 判断是否为有限值 437 | - [is_infinite](https://www.php.net/manual/zh/function.is-infinite.php) — 判断是否为无限值 438 | - [is_nan](https://www.php.net/manual/zh/function.is-nan.php) — 判断是否为合法数值 439 | - [lcg_value](https://www.php.net/manual/zh/function.lcg-value.php) — 组合线性同余发生器 440 | - [log10](https://www.php.net/manual/zh/function.log10.php) — 以 10 为底的对数 441 | - [log1p](https://www.php.net/manual/zh/function.log1p.php) — 返回 log(1 + number),甚至当 number 的值接近零也能计算出准确结果 442 | - [log](https://www.php.net/manual/zh/function.log.php) — 自然对数 443 | - [max](https://www.php.net/manual/zh/function.max.php) — 找出最大值 444 | - [min](https://www.php.net/manual/zh/function.min.php) — 找出最小值 445 | - [mt_getrandmax](https://www.php.net/manual/zh/function.mt-getrandmax.php) — 显示随机数的最大可能值 446 | - [mt_rand](https://www.php.net/manual/zh/function.mt-rand.php) — 生成更好的随机数 447 | - [mt_srand](https://www.php.net/manual/zh/function.mt-srand.php) — 播下一个更好的随机数发生器种子 448 | - [octdec](https://www.php.net/manual/zh/function.octdec.php) — 八进制转换为十进制 449 | - [pi](https://www.php.net/manual/zh/function.pi.php) — 得到圆周率值 450 | - [pow](https://www.php.net/manual/zh/function.pow.php) — 指数表达式 451 | - [rad2deg](https://www.php.net/manual/zh/function.rad2deg.php) — 将弧度数转换为相应的角度数 452 | - [rand](https://www.php.net/manual/zh/function.rand.php) — 产生一个随机整数 453 | - [round](https://www.php.net/manual/zh/function.round.php) — 对浮点数进行四舍五入 454 | - [sin](https://www.php.net/manual/zh/function.sin.php) — 正弦 455 | - [sinh](https://www.php.net/manual/zh/function.sinh.php) — 双曲正弦 456 | - [sqrt](https://www.php.net/manual/zh/function.sqrt.php) — 平方根 457 | - [srand](https://www.php.net/manual/zh/function.srand.php) — 播下随机数发生器种子 458 | - [tan](https://www.php.net/manual/zh/function.tan.php) — 正切 459 | - [tanh](https://www.php.net/manual/zh/function.tanh.php) — 双曲正切 460 | 461 |

类和对象

462 | 463 | - [__autoload](https://www.php.net/manual/zh/function.autoload.php) — 尝试加载未定义的类 464 | - [call_user_method_array](https://www.php.net/manual/zh/function.call-user-method-array.php) — 以参数列表的数组,调用用户方法 465 | - [call_user_method](https://www.php.net/manual/zh/function.call-user-method.php) — 对特定对象调用用户方法 466 | - [class_alias](https://www.php.net/manual/zh/function.class-alias.php) — 为一个类创建别名 467 | - [class_exists](https://www.php.net/manual/zh/function.class-exists.php) — 检查类是否已定义 468 | - [get_called_class](https://www.php.net/manual/zh/function.get-called-class.php) — 后期静态绑定("Late Static Binding")类的名称 469 | - [get_class_methods](https://www.php.net/manual/zh/function.get-class-methods.php) — 返回由类的方法名组成的数组 470 | - [get_class_vars](https://www.php.net/manual/zh/function.get-class-vars.php) — 返回由类的默认属性组成的数组 471 | - [get_class](https://www.php.net/manual/zh/function.get-class.php) — 返回对象的类名 472 | - [get_declared_classes](https://www.php.net/manual/zh/function.get-declared-classes.php) — 返回由已定义类的名字所组成的数组 473 | - [get_declared_interfaces](https://www.php.net/manual/zh/function.get-declared-interfaces.php) — 返回一个数组包含所有已声明的接口 474 | - [get_declared_traits](https://www.php.net/manual/zh/function.get-declared-traits.php) — 返回所有已定义的 traits 的数组 475 | - [get_object_vars](https://www.php.net/manual/zh/function.get-object-vars.php) — 返回由对象属性组成的关联数组 476 | - [get_parent_class](https://www.php.net/manual/zh/function.get-parent-class.php) — 返回对象或类的父类名 477 | - [interface_exists](https://www.php.net/manual/zh/function.interface-exists.php) — 检查接口是否已被定义 478 | - [is_a](https://www.php.net/manual/zh/function.is-a.php) — 如果对象属于该类或该类是此对象的父类则返回 TRUE 479 | - [is_subclass_of](https://www.php.net/manual/zh/function.is-subclass-of.php) — 如果此对象是该类的子类,则返回 TRUE 480 | - [method_exists](https://www.php.net/manual/zh/function.method-exists.php) — 检查类的方法是否存在 481 | - [property_exists](https://www.php.net/manual/zh/function.property-exists.php) — 检查对象或类是否具有该属性 482 | - [trait_exists](https://www.php.net/manual/zh/function.trait-exists.php) — 检查指定的 trait 是否存在 483 | 484 |

字符类型检测

485 | 486 | - [ctype_alnum](https://www.php.net/manual/zh/function.ctype-alnum.php) — 做字母和数字字符检测 487 | - [ctype_alpha](https://www.php.net/manual/zh/function.ctype-alpha.php) — 做纯字符检测 488 | - [ctype_cntrl](https://www.php.net/manual/zh/function.ctype-cntrl.php) — 做控制字符检测 489 | - [ctype_digit](https://www.php.net/manual/zh/function.ctype-digit.php) — 做纯数字检测 490 | - [ctype_graph](https://www.php.net/manual/zh/function.ctype-graph.php) — 做可打印字符串检测,空格除外 491 | - [ctype_lower](https://www.php.net/manual/zh/function.ctype-lower.php) — 做小写字符检测 492 | - [ctype_print](https://www.php.net/manual/zh/function.ctype-print.php) — 做可打印字符检测 493 | - [ctype_punct](https://www.php.net/manual/zh/function.ctype-punct.php) — 检测可打印的字符是不是不包含空白、数字和字母 494 | - [ctype_space](https://www.php.net/manual/zh/function.ctype-space.php) — 做空白字符检测 495 | - [ctype_upper](https://www.php.net/manual/zh/function.ctype-upper.php) — 做大写字母检测 496 | - [ctype_xdigit](https://www.php.net/manual/zh/function.ctype-xdigit.php) — 检测字符串是否只包含十六进制字符 497 | 498 |

日期和时间

499 | 500 | - [checkdate](https://www.php.net/manual/zh/function.checkdate.php) — 验证一个格里高里日期 501 | - [date_add](https://www.php.net/manual/zh/function.date-add.php) — 别名 DateTime::add 502 | - [date_create_from_format](https://www.php.net/manual/zh/function.date-create-from-format.php) — 别名 DateTime::createFromFormat 503 | - [date_create_immutable_from_format](https://www.php.net/manual/zh/function.date-create-immutable-from-format.php) — 别名 DateTimeImmutable::createFromFormat 504 | - [date_create_immutable](https://www.php.net/manual/zh/function.date-create-immutable.php) — 别名 DateTimeImmutable::__construct 505 | - [date_create](https://www.php.net/manual/zh/function.date-create.php) — 别名 DateTime::__construct 506 | - [date_date_set](https://www.php.net/manual/zh/function.date-date-set.php) — 别名 DateTime::setDate 507 | - [date_default_timezone_get](https://www.php.net/manual/zh/function.date-default-timezone-get.php) — 取得一个脚本中所有日期时间函数所使用的默认时区 508 | - [date_default_timezone_set](https://www.php.net/manual/zh/function.date-default-timezone-set.php) — 设定用于一个脚本中所有日期时间函数的默认时区 509 | - [date_diff](https://www.php.net/manual/zh/function.date-diff.php) — 别名 DateTime::diff 510 | - [date_format](https://www.php.net/manual/zh/function.date-format.php) — 别名 DateTime::format 511 | - [date_get_last_errors](https://www.php.net/manual/zh/function.date-get-last-errors.php) — 别名 DateTime::getLastErrors 512 | - [date_interval_create_from_date_string](https://www.php.net/manual/zh/function.date-interval-create-from-date-string.php) — 别名 DateInterval::createFromDateString 513 | - [date_interval_format](https://www.php.net/manual/zh/function.date-interval-format.php) — 别名 DateInterval::format 514 | - [date_isodate_set](https://www.php.net/manual/zh/function.date-isodate-set.php) — 别名 DateTime::setISODate 515 | - [date_modify](https://www.php.net/manual/zh/function.date-modify.php) — 别名 DateTime::modify 516 | - [date_offset_get](https://www.php.net/manual/zh/function.date-offset-get.php) — 别名 DateTime::getOffset 517 | - [date_parse_from_format](https://www.php.net/manual/zh/function.date-parse-from-format.php) — Get info about given date formatted according to the specified format 518 | - [date_parse](https://www.php.net/manual/zh/function.date-parse.php) — Returns associative array with detailed info about given date 519 | - [date_sub](https://www.php.net/manual/zh/function.date-sub.php) — 别名 DateTime::sub 520 | - [date_sun_info](https://www.php.net/manual/zh/function.date-sun-info.php) — Returns an array with information about sunset/sunrise and twilight begin/end 521 | - [date_sunrise](https://www.php.net/manual/zh/function.date-sunrise.php) — 返回给定的日期与地点的日出时间 522 | - [date_sunset](https://www.php.net/manual/zh/function.date-sunset.php) — 返回给定的日期与地点的日落时间 523 | - [date_time_set](https://www.php.net/manual/zh/function.date-time-set.php) — 别名 DateTime::setTime 524 | - [date_timestamp_get](https://www.php.net/manual/zh/function.date-timestamp-get.php) — 别名 DateTime::getTimestamp 525 | - [date_timestamp_set](https://www.php.net/manual/zh/function.date-timestamp-set.php) — 别名 DateTime::setTimestamp 526 | - [date_timezone_get](https://www.php.net/manual/zh/function.date-timezone-get.php) — 别名 DateTime::getTimezone 527 | - [date_timezone_set](https://www.php.net/manual/zh/function.date-timezone-set.php) — 别名 DateTime::setTimezone 528 | - [date](https://www.php.net/manual/zh/function.date.php) — 格式化一个本地时间/日期 529 | - [getdate](https://www.php.net/manual/zh/function.getdate.php) — 取得日期/时间信息 530 | - [gettimeofday](https://www.php.net/manual/zh/function.gettimeofday.php) — 取得当前时间 531 | - [gmdate](https://www.php.net/manual/zh/function.gmdate.php) — 格式化一个 GMT/UTC 日期/时间 532 | - [gmmktime](https://www.php.net/manual/zh/function.gmmktime.php) — 取得 GMT 日期的 UNIX 时间戳 533 | - [gmstrftime](https://www.php.net/manual/zh/function.gmstrftime.php) — 根据区域设置格式化 GMT/UTC 时间/日期 534 | - [idate](https://www.php.net/manual/zh/function.idate.php) — 将本地时间日期格式化为整数 535 | - [localtime](https://www.php.net/manual/zh/function.localtime.php) — 取得本地时间 536 | - [microtime](https://www.php.net/manual/zh/function.microtime.php) — 返回当前 Unix 时间戳和微秒数 537 | - [mktime](https://www.php.net/manual/zh/function.mktime.php) — 取得一个日期的 Unix 时间戳 538 | - [strftime](https://www.php.net/manual/zh/function.strftime.php) — 根据区域设置格式化本地时间/日期 539 | - [strptime](https://www.php.net/manual/zh/function.strptime.php) — 解析由 strftime 生成的日期/时间 540 | - [strtotime](https://www.php.net/manual/zh/function.strtotime.php) — 将任何字符串的日期时间描述解析为 Unix 时间戳 541 | - [time](https://www.php.net/manual/zh/function.time.php) — 返回当前的 Unix 时间戳 542 | - [timezone_abbreviations_list](https://www.php.net/manual/zh/function.timezone-abbreviations-list.php) — 别名 DateTimeZone::listAbbreviations 543 | - [timezone_identifiers_list](https://www.php.net/manual/zh/function.timezone-identifiers-list.php) — 别名 DateTimeZone::listIdentifiers 544 | - [timezone_location_get](https://www.php.net/manual/zh/function.timezone-location-get.php) — 别名 DateTimeZone::getLocation 545 | - [timezone_name_from_abbr](https://www.php.net/manual/zh/function.timezone-name-from-abbr.php) — Returns the timezone name from abbreviation 546 | - [timezone_name_get](https://www.php.net/manual/zh/function.timezone-name-get.php) — 别名 DateTimeZone::getName 547 | - [timezone_offset_get](https://www.php.net/manual/zh/function.timezone-offset-get.php) — 别名 DateTimeZone::getOffset 548 | - [timezone_open](https://www.php.net/manual/zh/function.timezone-open.php) — 别名 DateTimeZone::__construct 549 | - [timezone_transitions_get](https://www.php.net/manual/zh/function.timezone-transitions-get.php) — 别名 DateTimeZone::getTransitions 550 | - [timezone_version_get](https://www.php.net/manual/zh/function.timezone-version-get.php) — Gets the version of the timezonedb 551 | 552 |

CURL

553 | 554 | - [curl_close](https://www.php.net/manual/zh/function.curl-close.php) — 关闭 cURL 会话 555 | - [curl_copy_handle](https://www.php.net/manual/zh/function.curl-copy-handle.php) — 复制一个cURL句柄和它的所有选项 556 | - [curl_errno](https://www.php.net/manual/zh/function.curl-errno.php) — 返回最后一次的错误代码 557 | - [curl_error](https://www.php.net/manual/zh/function.curl-error.php) — 返回当前会话最后一次错误的字符串 558 | - [curl_escape](https://www.php.net/manual/zh/function.curl-escape.php) — 使用 URL 编码给定的字符串 559 | - [curl_exec](https://www.php.net/manual/zh/function.curl-exec.php) — 执行 cURL 会话 560 | - [curl_file_create](https://www.php.net/manual/zh/function.curl-file-create.php) — 创建一个 CURLFile 对象 561 | - [curl_getinfo](https://www.php.net/manual/zh/function.curl-getinfo.php) — 获取一个cURL连接资源句柄的信息 562 | - [curl_init](https://www.php.net/manual/zh/function.curl-init.php) — 初始化 cURL 会话 563 | - [curl_multi_add_handle](https://www.php.net/manual/zh/function.curl-multi-add-handle.php) — 向curl批处理会话中添加单独的curl句柄 564 | - [curl_multi_close](https://www.php.net/manual/zh/function.curl-multi-close.php) — 关闭一组cURL句柄 565 | - [curl_multi_errno](https://www.php.net/manual/zh/function.curl-multi-errno.php) — 返回上一次 curl 批处理的错误码 566 | - [curl_multi_exec](https://www.php.net/manual/zh/function.curl-multi-exec.php) — 运行当前 cURL 句柄的子连接 567 | - [curl_multi_getcontent](https://www.php.net/manual/zh/function.curl-multi-getcontent.php) — 如果设置了CURLOPT_RETURNTRANSFER,则返回获取的输出的文本流 568 | - [curl_multi_info_read](https://www.php.net/manual/zh/function.curl-multi-info-read.php) — 获取当前解析的cURL的相关传输信息 569 | - [curl_multi_init](https://www.php.net/manual/zh/function.curl-multi-init.php) — 返回一个新cURL批处理句柄 570 | - [curl_multi_remove_handle](https://www.php.net/manual/zh/function.curl-multi-remove-handle.php) — 移除cURL批处理句柄资源中的某个句柄资源 571 | - [curl_multi_select](https://www.php.net/manual/zh/function.curl-multi-select.php) — 等待所有cURL批处理中的活动连接 572 | - [curl_multi_setopt](https://www.php.net/manual/zh/function.curl-multi-setopt.php) — 为 cURL 并行处理设置一个选项 573 | - [curl_multi_strerror](https://www.php.net/manual/zh/function.curl-multi-strerror.php) — 返回字符串描述的错误代码 574 | - [curl_pause](https://www.php.net/manual/zh/function.curl-pause.php) — 暂停和取消暂停一个连接。 575 | - [curl_reset](https://www.php.net/manual/zh/function.curl-reset.php) — 重置一个 libcurl 会话句柄的所有的选项 576 | - [curl_setopt_array](https://www.php.net/manual/zh/function.curl-setopt-array.php) — 为 cURL 传输会话批量设置选项 577 | - [curl_setopt](https://www.php.net/manual/zh/function.curl-setopt.php) — 设置 cURL 传输选项 578 | - [curl_share_close](https://www.php.net/manual/zh/function.curl-share-close.php) — 关闭 cURL 共享句柄 579 | - [curl_share_errno](https://www.php.net/manual/zh/function.curl-share-errno.php) — 返回共享 curl 句柄的最后一次错误号 580 | - [curl_share_init](https://www.php.net/manual/zh/function.curl-share-init.php) — 初始化一个 cURL 共享句柄。 581 | - [curl_share_setopt](https://www.php.net/manual/zh/function.curl-share-setopt.php) — 为 cURL 共享句柄设置选项。 582 | - [curl_share_strerror](https://www.php.net/manual/zh/function.curl-share-strerror.php) — 返回错误号对应的错误消息 583 | - [curl_strerror](https://www.php.net/manual/zh/function.curl-strerror.php) — 返回错误代码的字符串描述 584 | - [curl_unescape](https://www.php.net/manual/zh/function.curl-unescape.php) — 解码给定的 URL 编码的字符串 585 | - [curl_version](https://www.php.net/manual/zh/function.curl-version.php) — 获取 cURL 版本信息 586 | 587 |

过滤器

588 | 589 | - [filter_has_var](https://www.php.net/manual/zh/function.filter-has-var.php) — 检测是否存在指定类型的变量 590 | - [filter_id](https://www.php.net/manual/zh/function.filter-id.php) — 返回与某个特定名称的过滤器相关联的id 591 | - [filter_input_array](https://www.php.net/manual/zh/function.filter-input-array.php) — 获取一系列外部变量,并且可以通过过滤器处理它们 592 | - [filter_input](https://www.php.net/manual/zh/function.filter-input.php) — 通过名称获取特定的外部变量,并且可以通过过滤器处理它 593 | - [filter_list](https://www.php.net/manual/zh/function.filter-list.php) — 返回所支持的过滤器列表 594 | - [filter_var_array](https://www.php.net/manual/zh/function.filter-var-array.php) — 获取多个变量并且过滤它们 595 | - [filter_var](https://www.php.net/manual/zh/function.filter-var.php) — 使用特定的过滤器过滤一个变量 596 | 597 |

函数处理

598 | 599 | - [call_user_func_array](https://www.php.net/manual/zh/function.call-user-func-array.php) — 调用回调函数,并把一个数组参数作为回调函数的参数 600 | - [call_user_func](https://www.php.net/manual/zh/function.call-user-func.php) — 把第一个参数作为回调函数调用 601 | - [create_function](https://www.php.net/manual/zh/function.create-function.php) — Create an anonymous (lambda-style) function 602 | - [forward_static_call_array](https://www.php.net/manual/zh/function.forward-static-call-array.php) — Call a static method and pass the arguments as array 603 | - [forward_static_call](https://www.php.net/manual/zh/function.forward-static-call.php) — Call a static method 604 | - [func_get_arg](https://www.php.net/manual/zh/function.func-get-arg.php) — 返回参数列表的某一项 605 | - [func_get_args](https://www.php.net/manual/zh/function.func-get-args.php) — 返回一个包含函数参数列表的数组 606 | - [func_num_args](https://www.php.net/manual/zh/function.func-num-args.php) — Returns the number of arguments passed to the function 607 | - [function_exists](https://www.php.net/manual/zh/function.function-exists.php) — 如果给定的函数已经被定义就返回 TRUE 608 | - [get_defined_functions](https://www.php.net/manual/zh/function.get-defined-functions.php) — 返回所有已定义函数的数组 609 | - [register_shutdown_function](https://www.php.net/manual/zh/function.register-shutdown-function.php) — 注册一个会在php中止时执行的函数 610 | - [register_tick_function](https://www.php.net/manual/zh/function.register-tick-function.php) — Register a function for execution on each tick 611 | - [unregister_tick_function](https://www.php.net/manual/zh/function.unregister-tick-function.php) — De-register a function for execution on each tick 612 | 613 |

正则处理

614 | 615 | - [preg_filter](https://www.php.net/manual/zh/function.preg-filter.php) — 执行一个正则表达式搜索和替换 616 | - [preg_grep](https://www.php.net/manual/zh/function.preg-grep.php) — 返回匹配模式的数组条目 617 | - [preg_last_error](https://www.php.net/manual/zh/function.preg-last-error.php) — 返回最后一个PCRE正则执行产生的错误代码 618 | - [preg_match_all](https://www.php.net/manual/zh/function.preg-match-all.php) — 执行一个全局正则表达式匹配 619 | - [preg_match](https://www.php.net/manual/zh/function.preg-match.php) — 执行匹配正则表达式 620 | - [preg_quote](https://www.php.net/manual/zh/function.preg-quote.php) — 转义正则表达式字符 621 | - [preg_replace_callback_array](https://www.php.net/manual/zh/function.preg-replace-callback-array.php) — Perform a regular expression search and replace using callbacks 622 | - [preg_replace_callback](https://www.php.net/manual/zh/function.preg-replace-callback.php) — 执行一个正则表达式搜索并且使用一个回调进行替换 623 | - [preg_replace](https://www.php.net/manual/zh/function.preg-replace.php) — 执行一个正则表达式的搜索和替换 624 | - [preg_split](https://www.php.net/manual/zh/function.preg-split.php) — 通过一个正则表达式分隔字符串 625 | 626 |

网络

627 | 628 | - [checkdnsrr](https://www.php.net/manual/zh/function.checkdnsrr.php) — 给指定的主机(域名)或者IP地址做DNS通信检查 629 | - [closelog](https://www.php.net/manual/zh/function.closelog.php) — 关闭系统日志链接 630 | - [define_syslog_variables](https://www.php.net/manual/zh/function.define-syslog-variables.php) — Initializes all syslog related variables 631 | - [dns_check_record](https://www.php.net/manual/zh/function.dns-check-record.php) — 别名 checkdnsrr 632 | - [dns_get_mx](https://www.php.net/manual/zh/function.dns-get-mx.php) — 别名 getmxrr 633 | - [dns_get_record](https://www.php.net/manual/zh/function.dns-get-record.php) — 获取指定主机的DNS记录 634 | - [fsockopen](https://www.php.net/manual/zh/function.fsockopen.php) — 打开一个网络连接或者一个Unix套接字连接 635 | - [gethostbyaddr](https://www.php.net/manual/zh/function.gethostbyaddr.php) — 获取指定的IP地址对应的主机名 636 | - [gethostbyname](https://www.php.net/manual/zh/function.gethostbyname.php) — 返回主机名对应的 IPv4地址。 637 | - [gethostbynamel](https://www.php.net/manual/zh/function.gethostbynamel.php) — 获取互联网主机名对应的 IPv4 地址列表 638 | - [gethostname](https://www.php.net/manual/zh/function.gethostname.php) — 获取主机名 639 | - [getmxrr](https://www.php.net/manual/zh/function.getmxrr.php) — 获取互联网主机名对应的 MX 记录 640 | - [getprotobyname](https://www.php.net/manual/zh/function.getprotobyname.php) — Get protocol number associated with protocol name 641 | - [getprotobynumber](https://www.php.net/manual/zh/function.getprotobynumber.php) — Get protocol name associated with protocol number 642 | - [getservbyname](https://www.php.net/manual/zh/function.getservbyname.php) — 获取互联网服务协议对应的端口 643 | - [getservbyport](https://www.php.net/manual/zh/function.getservbyport.php) — Get Internet service which corresponds to port and protocol 644 | - [header_register_callback](https://www.php.net/manual/zh/function.header-register-callback.php) — 调用一个 header 函数 645 | - [header_remove](https://www.php.net/manual/zh/function.header-remove.php) — 删除之前设置的 HTTP 头 646 | - [header](https://www.php.net/manual/zh/function.header.php) — 发送原生 HTTP 头 647 | - [headers_list](https://www.php.net/manual/zh/function.headers-list.php) — 返回已发送的 HTTP 响应头(或准备发送的) 648 | - [headers_sent](https://www.php.net/manual/zh/function.headers-sent.php) — 检测 HTTP 头是否已经发送 649 | - [http_response_code](https://www.php.net/manual/zh/function.http-response-code.php) — 获取/设置响应的 HTTP 状态码 650 | - [inet_ntop](https://www.php.net/manual/zh/function.inet-ntop.php) — Converts a packed internet address to a human readable representation 651 | - [inet_pton](https://www.php.net/manual/zh/function.inet-pton.php) — Converts a human readable IP address to its packed in_addr representation 652 | - [ip2long](https://www.php.net/manual/zh/function.ip2long.php) — 将 IPV4 的字符串互联网协议转换成长整型数字 653 | - [long2ip](https://www.php.net/manual/zh/function.long2ip.php) — 将长整型转化为字符串形式带点的互联网标准格式地址(IPV4) 654 | - [openlog](https://www.php.net/manual/zh/function.openlog.php) — Open connection to system logger 655 | - [pfsockopen](https://www.php.net/manual/zh/function.pfsockopen.php) — 打开一个持久的网络连接或者Unix套接字连接。 656 | - [setcookie](https://www.php.net/manual/zh/function.setcookie.php) — 发送 Cookie 657 | - [setrawcookie](https://www.php.net/manual/zh/function.setrawcookie.php) — 发送未经 URL 编码的 cookie 658 | - [socket_get_status](https://www.php.net/manual/zh/function.socket-get-status.php) — 别名 stream_get_meta_data 659 | - [socket_set_blocking](https://www.php.net/manual/zh/function.socket-set-blocking.php) — 别名 stream_set_blocking 660 | - [socket_set_timeout](https://www.php.net/manual/zh/function.socket-set-timeout.php) — 别名 stream_set_timeout 661 | - [syslog](https://www.php.net/manual/zh/function.syslog.php) — Generate a system log message 662 | 663 |

程序执行

664 | 665 | - [escapeshellarg](https://www.php.net/manual/zh/function.escapeshellarg.php) — 把字符串转码为可以在 shell 命令里使用的参数 666 | - [escapeshellcmd](https://www.php.net/manual/zh/function.escapeshellcmd.php) — shell 元字符转义 667 | - [exec](https://www.php.net/manual/zh/function.exec.php) — 执行一个外部程序 668 | - [passthru](https://www.php.net/manual/zh/function.passthru.php) — 执行外部程序并且显示原始输出 669 | - [proc_close](https://www.php.net/manual/zh/function.proc-close.php) — 关闭由 proc_open 打开的进程并且返回进程退出码 670 | - [proc_get_status](https://www.php.net/manual/zh/function.proc-get-status.php) — 获取由 proc_open 函数打开的进程的信息 671 | - [proc_nice](https://www.php.net/manual/zh/function.proc-nice.php) — 修改当前进程的优先级 672 | - [proc_open](https://www.php.net/manual/zh/function.proc-open.php) — 执行一个命令,并且打开用来输入/输出的文件指针。 673 | - [proc_terminate](https://www.php.net/manual/zh/function.proc-terminate.php) — 杀除由 proc_open 打开的进程 674 | - [shell_exec](https://www.php.net/manual/zh/function.shell-exec.php) — 通过 shell 环境执行命令,并且将完整的输出以字符串的方式返回。 675 | - [system](https://www.php.net/manual/zh/function.system.php) — 执行外部程序,并且显示输出 676 | 677 |

PHP选项和信息

678 | 679 | - [assert_options](https://www.php.net/manual/zh/function.assert-options.php) — 设置/获取断言的各种标志 680 | - [assert](https://www.php.net/manual/zh/function.assert.php) — 检查一个断言是否为 FALSE 681 | - [cli_get_process_title](https://www.php.net/manual/zh/function.cli-get-process-title.php) — Returns the current process title 682 | - [cli_set_process_title](https://www.php.net/manual/zh/function.cli-set-process-title.php) — Sets the process title 683 | - [dl](https://www.php.net/manual/zh/function.dl.php) — 运行时载入一个 PHP 扩展 684 | - [extension_loaded](https://www.php.net/manual/zh/function.extension-loaded.php) — 检查一个扩展是否已经加载 685 | - [gc_collect_cycles](https://www.php.net/manual/zh/function.gc-collect-cycles.php) — 强制收集所有现存的垃圾循环周期 686 | - [gc_disable](https://www.php.net/manual/zh/function.gc-disable.php) — 停用循环引用收集器 687 | - [gc_enable](https://www.php.net/manual/zh/function.gc-enable.php) — 激活循环引用收集器 688 | - [gc_enabled](https://www.php.net/manual/zh/function.gc-enabled.php) — 返回循环引用计数器的状态 689 | - [gc_mem_caches](https://www.php.net/manual/zh/function.gc-mem-caches.php) — Reclaims memory used by the Zend Engine memory manager 690 | - [gc_status](https://www.php.net/manual/zh/function.gc-status.php) — Gets information about the garbage collector 691 | - [get_cfg_var](https://www.php.net/manual/zh/function.get-cfg-var.php) — 获取 PHP 配置选项的值 692 | - [get_current_user](https://www.php.net/manual/zh/function.get-current-user.php) — 获取当前 PHP 脚本所有者名称 693 | - [get_defined_constants](https://www.php.net/manual/zh/function.get-defined-constants.php) — 返回所有常量的关联数组,键是常量名,值是常量值 694 | - [get_extension_funcs](https://www.php.net/manual/zh/function.get-extension-funcs.php) — 返回模块函数名称的数组 695 | - [get_include_path](https://www.php.net/manual/zh/function.get-include-path.php) — 获取当前的 include_path 配置选项 696 | - [get_included_files](https://www.php.net/manual/zh/function.get-included-files.php) — 返回被 include 和 require 文件名的 array 697 | - [get_loaded_extensions](https://www.php.net/manual/zh/function.get-loaded-extensions.php) — 返回所有编译并加载模块名的 array 698 | - [get_magic_quotes_gpc](https://www.php.net/manual/zh/function.get-magic-quotes-gpc.php) — 获取当前 magic_quotes_gpc 的配置选项设置 699 | - [get_magic_quotes_runtime](https://www.php.net/manual/zh/function.get-magic-quotes-runtime.php) — 获取当前 magic_quotes_runtime 配置选项的激活状态 700 | - [get_required_files](https://www.php.net/manual/zh/function.get-required-files.php) — 别名 get_included_files 701 | - [get_resources](https://www.php.net/manual/zh/function.get-resources.php) — Returns active resources 702 | - [getenv](https://www.php.net/manual/zh/function.getenv.php) — 获取一个环境变量的值 703 | - [getlastmod](https://www.php.net/manual/zh/function.getlastmod.php) — 获取页面最后修改的时间 704 | - [getmygid](https://www.php.net/manual/zh/function.getmygid.php) — 获取当前 PHP 脚本拥有者的 GID 705 | - [getmyinode](https://www.php.net/manual/zh/function.getmyinode.php) — 获取当前脚本的索引节点(inode) 706 | - [getmypid](https://www.php.net/manual/zh/function.getmypid.php) — 获取 PHP 进程的 ID 707 | - [getmyuid](https://www.php.net/manual/zh/function.getmyuid.php) — 获取 PHP 脚本所有者的 UID 708 | - [getopt](https://www.php.net/manual/zh/function.getopt.php) — 从命令行参数列表中获取选项 709 | - [getrusage](https://www.php.net/manual/zh/function.getrusage.php) — 获取当前资源使用状况 710 | - [ini_alter](https://www.php.net/manual/zh/function.ini-alter.php) — 别名 ini_set 711 | - [ini_get_all](https://www.php.net/manual/zh/function.ini-get-all.php) — 获取所有配置选项 712 | - [ini_get](https://www.php.net/manual/zh/function.ini-get.php) — 获取一个配置选项的值 713 | - [ini_restore](https://www.php.net/manual/zh/function.ini-restore.php) — 恢复配置选项的值 714 | - [ini_set](https://www.php.net/manual/zh/function.ini-set.php) — 为一个配置选项设置值 715 | - [magic_quotes_runtime](https://www.php.net/manual/zh/function.magic-quotes-runtime.php) — 别名 set_magic_quotes_runtime 716 | - [main](https://www.php.net/manual/zh/function.main.php) — 虚拟的main 717 | - [memory_get_peak_usage](https://www.php.net/manual/zh/function.memory-get-peak-usage.php) — 返回分配给 PHP 内存的峰值 718 | - [memory_get_usage](https://www.php.net/manual/zh/function.memory-get-usage.php) — 返回分配给 PHP 的内存量 719 | - [php_ini_loaded_file](https://www.php.net/manual/zh/function.php-ini-loaded-file.php) — 取得已加载的 php.ini 文件的路径 720 | - [php_ini_scanned_files](https://www.php.net/manual/zh/function.php-ini-scanned-files.php) — 返回从额外 ini 目录里解析的 .ini 文件列表 721 | - [php_logo_guid](https://www.php.net/manual/zh/function.php-logo-guid.php) — 获取 logo 的 guid 722 | - [php_sapi_name](https://www.php.net/manual/zh/function.php-sapi-name.php) — 返回 web 服务器和 PHP 之间的接口类型 723 | - [php_uname](https://www.php.net/manual/zh/function.php-uname.php) — 返回运行 PHP 的系统的有关信息 724 | - [phpcredits](https://www.php.net/manual/zh/function.phpcredits.php) — 打印 PHP 贡献者名单 725 | - [phpinfo](https://www.php.net/manual/zh/function.phpinfo.php) — 输出关于 PHP 配置的信息 726 | - [phpversion](https://www.php.net/manual/zh/function.phpversion.php) — 获取当前的PHP版本 727 | - [putenv](https://www.php.net/manual/zh/function.putenv.php) — 设置环境变量的值 728 | - [restore_include_path](https://www.php.net/manual/zh/function.restore-include-path.php) — 还原 include_path 配置选项的值 729 | - [set_include_path](https://www.php.net/manual/zh/function.set-include-path.php) — 设置 include_path 配置选项 730 | - [set_magic_quotes_runtime](https://www.php.net/manual/zh/function.set-magic-quotes-runtime.php) — 设置当前 magic_quotes_runtime 配置选项的激活状态 731 | - [set_time_limit](https://www.php.net/manual/zh/function.set-time-limit.php) — 设置脚本最大执行时间 732 | - [sys_get_temp_dir](https://www.php.net/manual/zh/function.sys-get-temp-dir.php) — 返回用于临时文件的目录 733 | - [version_compare](https://www.php.net/manual/zh/function.version-compare.php) — 对比两个「PHP 规范化」的版本数字字符串 734 | - [zend_logo_guid](https://www.php.net/manual/zh/function.zend-logo-guid.php) — 获取 Zend guid 735 | - [zend_thread_id](https://www.php.net/manual/zh/function.zend-thread-id.php) — 返回当前线程的唯一识别符 736 | - [zend_version](https://www.php.net/manual/zh/function.zend-version.php) — 获取当前 Zend 引擎的版本 737 | 738 |

错误处理

739 | 740 | - [debug_backtrace](https://www.php.net/manual/zh/function.debug-backtrace.php) — 产生一条回溯跟踪(backtrace) 741 | - [debug_print_backtrace](https://www.php.net/manual/zh/function.debug-print-backtrace.php) — 打印一条回溯。 742 | - [error_clear_last](https://www.php.net/manual/zh/function.error-clear-last.php) — 清除最近一次错误 743 | - [error_get_last](https://www.php.net/manual/zh/function.error-get-last.php) — 获取最后发生的错误 744 | - [error_log](https://www.php.net/manual/zh/function.error-log.php) — 发送错误信息到某个地方 745 | - [error_reporting](https://www.php.net/manual/zh/function.error-reporting.php) — 设置应该报告何种 PHP 错误 746 | - [restore_error_handler](https://www.php.net/manual/zh/function.restore-error-handler.php) — 还原之前的错误处理函数 747 | - [restore_exception_handler](https://www.php.net/manual/zh/function.restore-exception-handler.php) — 恢复之前定义过的异常处理函数。 748 | - [set_error_handler](https://www.php.net/manual/zh/function.set-error-handler.php) — 设置用户自定义的错误处理函数 749 | - [set_exception_handler](https://www.php.net/manual/zh/function.set-exception-handler.php) — 设置用户自定义的异常处理函数 750 | - [trigger_error](https://www.php.net/manual/zh/function.trigger-error.php) — 产生一个用户级别的 error/warning/notice 信息 751 | - [user_error](https://www.php.net/manual/zh/function.user-error.php) — trigger_error 的别名 752 | 753 |

输出缓冲控制

754 | 755 | - [flush](https://www.php.net/manual/zh/function.flush.php) — 刷新输出缓冲 756 | - [ob_clean](https://www.php.net/manual/zh/function.ob-clean.php) — 清空(擦掉)输出缓冲区 757 | - [ob_end_clean](https://www.php.net/manual/zh/function.ob-end-clean.php) — 清空(擦除)缓冲区并关闭输出缓冲 758 | - [ob_end_flush](https://www.php.net/manual/zh/function.ob-end-flush.php) — 冲刷出(送出)输出缓冲区内容并关闭缓冲 759 | - [ob_flush](https://www.php.net/manual/zh/function.ob-flush.php) — 冲刷出(送出)输出缓冲区中的内容 760 | - [ob_get_clean](https://www.php.net/manual/zh/function.ob-get-clean.php) — 得到当前缓冲区的内容并删除当前输出缓。 761 | - [ob_get_contents](https://www.php.net/manual/zh/function.ob-get-contents.php) — 返回输出缓冲区的内容 762 | - [ob_get_flush](https://www.php.net/manual/zh/function.ob-get-flush.php) — 刷出(送出)缓冲区内容,以字符串形式返回内容,并关闭输出缓冲区。 763 | - [ob_get_length](https://www.php.net/manual/zh/function.ob-get-length.php) — 返回输出缓冲区内容的长度 764 | - [ob_get_level](https://www.php.net/manual/zh/function.ob-get-level.php) — 返回输出缓冲机制的嵌套级别 765 | - [ob_get_status](https://www.php.net/manual/zh/function.ob-get-status.php) — 得到所有输出缓冲区的状态 766 | - [ob_gzhandler](https://www.php.net/manual/zh/function.ob-gzhandler.php) — 在ob_start中使用的用来压缩输出缓冲区中内容的回调函数。ob_start callback function to gzip output buffer 767 | - [ob_implicit_flush](https://www.php.net/manual/zh/function.ob-implicit-flush.php) — 打开/关闭绝对刷送 768 | - [ob_list_handlers](https://www.php.net/manual/zh/function.ob-list-handlers.php) — 列出所有使用中的输出处理程序。 769 | - [ob_start](https://www.php.net/manual/zh/function.ob-start.php) — 打开输出控制缓冲 770 | - [output_add_rewrite_var](https://www.php.net/manual/zh/function.output-add-rewrite-var.php) — 添加URL重写器的值(Add URL rewriter values) 771 | - [output_reset_rewrite_vars](https://www.php.net/manual/zh/function.output-reset-rewrite-vars.php) — 重设URL重写器的值(Reset URL rewriter values) 772 | 773 |

密码散列算法

774 | 775 | - [password_get_info](https://www.php.net/manual/zh/function.password-get-info.php) — 返回指定散列(hash)的相关信息 776 | - [password_hash](https://www.php.net/manual/zh/function.password-hash.php) — 创建密码的散列(hash) 777 | - [password_needs_rehash](https://www.php.net/manual/zh/function.password-needs-rehash.php) — 检测散列值是否匹配指定的选项 778 | - [password_verify](https://www.php.net/manual/zh/function.password-verify.php) — 验证密码是否和散列值匹配 779 | 780 |

Session

781 | 782 | - [session_abort](https://www.php.net/manual/zh/function.session-abort.php) — Discard session array changes and finish session 783 | - [session_cache_expire](https://www.php.net/manual/zh/function.session-cache-expire.php) — 返回当前缓存的到期时间 784 | - [session_cache_limiter](https://www.php.net/manual/zh/function.session-cache-limiter.php) — 读取/设置缓存限制器 785 | - [session_commit](https://www.php.net/manual/zh/function.session-commit.php) — session_write_close 的别名 786 | - [session_create_id](https://www.php.net/manual/zh/function.session-create-id.php) — Create new session id 787 | - [session_decode](https://www.php.net/manual/zh/function.session-decode.php) — 解码会话数据 788 | - [session_destroy](https://www.php.net/manual/zh/function.session-destroy.php) — 销毁一个会话中的全部数据 789 | - [session_encode](https://www.php.net/manual/zh/function.session-encode.php) — 将当前会话数据编码为一个字符串 790 | - [session_gc](https://www.php.net/manual/zh/function.session-gc.php) — Perform session data garbage collection 791 | - [session_get_cookie_params](https://www.php.net/manual/zh/function.session-get-cookie-params.php) — 获取会话 cookie 参数 792 | - [session_id](https://www.php.net/manual/zh/function.session-id.php) — 获取/设置当前会话 ID 793 | - [session_is_registered](https://www.php.net/manual/zh/function.session-is-registered.php) — 检查变量是否在会话中已经注册 794 | - [session_module_name](https://www.php.net/manual/zh/function.session-module-name.php) — 获取/设置会话模块名称 795 | - [session_name](https://www.php.net/manual/zh/function.session-name.php) — 读取/设置会话名称 796 | - [session_regenerate_id](https://www.php.net/manual/zh/function.session-regenerate-id.php) — 使用新生成的会话 ID 更新现有会话 ID 797 | - [session_register_shutdown](https://www.php.net/manual/zh/function.session-register-shutdown.php) — 关闭会话 798 | - [session_register](https://www.php.net/manual/zh/function.session-register.php) — Register one or more global variables with the current session 799 | - [session_reset](https://www.php.net/manual/zh/function.session-reset.php) — Re-initialize session array with original values 800 | - [session_save_path](https://www.php.net/manual/zh/function.session-save-path.php) — 读取/设置当前会话的保存路径 801 | - [session_set_cookie_params](https://www.php.net/manual/zh/function.session-set-cookie-params.php) — 设置会话 cookie 参数 802 | - [session_set_save_handler](https://www.php.net/manual/zh/function.session-set-save-handler.php) — 设置用户自定义会话存储函数 803 | - [session_start](https://www.php.net/manual/zh/function.session-start.php) — 启动新会话或者重用现有会话 804 | - [session_status](https://www.php.net/manual/zh/function.session-status.php) — 返回当前会话状态 805 | - [session_unregister](https://www.php.net/manual/zh/function.session-unregister.php) — Unregister a global variable from the current session 806 | - [session_unset](https://www.php.net/manual/zh/function.session-unset.php) — 释放所有的会话变量 807 | - [session_write_close](https://www.php.net/manual/zh/function.session-write-close.php) — Write session data and end session 808 | 809 |

JSON

810 | 811 | - [json_decode](https://www.php.net/manual/zh/function.json-decode.php) — 对 JSON 格式的字符串进行解码 812 | - [json_encode](https://www.php.net/manual/zh/function.json-encode.php) — 对变量进行 JSON 编码 813 | - [json_last_error_msg](https://www.php.net/manual/zh/function.json-last-error-msg.php) — Returns the error string of the last json_encode() or json_decode() call 814 | - [json_last_error](https://www.php.net/manual/zh/function.json-last-error.php) — 返回最后发生的错误 815 | 816 |

Stream

817 | 818 | - [set_socket_blocking](https://www.php.net/manual/zh/function.set-socket-blocking.php) — 别名 stream_set_blocking 819 | - [stream_bucket_append](https://www.php.net/manual/zh/function.stream-bucket-append.php) — Append bucket to brigade 820 | - [stream_bucket_make_writeable](https://www.php.net/manual/zh/function.stream-bucket-make-writeable.php) — Return a bucket object from the brigade for operating on 821 | - [stream_bucket_new](https://www.php.net/manual/zh/function.stream-bucket-new.php) — Create a new bucket for use on the current stream 822 | - [stream_bucket_prepend](https://www.php.net/manual/zh/function.stream-bucket-prepend.php) — Prepend bucket to brigade 823 | - [stream_context_create](https://www.php.net/manual/zh/function.stream-context-create.php) — 创建资源流上下文 824 | - [stream_context_get_default](https://www.php.net/manual/zh/function.stream-context-get-default.php) — Retrieve the default stream context 825 | - [stream_context_get_options](https://www.php.net/manual/zh/function.stream-context-get-options.php) — 获取资源流/数据包/上下文的参数 826 | - [stream_context_get_params](https://www.php.net/manual/zh/function.stream-context-get-params.php) — Retrieves parameters from a context 827 | - [stream_context_set_default](https://www.php.net/manual/zh/function.stream-context-set-default.php) — Set the default stream context 828 | - [stream_context_set_option](https://www.php.net/manual/zh/function.stream-context-set-option.php) — 对资源流、数据包或者上下文设置参数 829 | - [stream_context_set_params](https://www.php.net/manual/zh/function.stream-context-set-params.php) — Set parameters for a stream/wrapper/context 830 | - [stream_copy_to_stream](https://www.php.net/manual/zh/function.stream-copy-to-stream.php) — Copies data from one stream to another 831 | - [stream_filter_append](https://www.php.net/manual/zh/function.stream-filter-append.php) — Attach a filter to a stream 832 | - [stream_filter_prepend](https://www.php.net/manual/zh/function.stream-filter-prepend.php) — Attach a filter to a stream 833 | - [stream_filter_register](https://www.php.net/manual/zh/function.stream-filter-register.php) — Register a user defined stream filter 834 | - [stream_filter_remove](https://www.php.net/manual/zh/function.stream-filter-remove.php) — 从资源流里移除某个过滤器 835 | - [stream_get_contents](https://www.php.net/manual/zh/function.stream-get-contents.php) — 读取资源流到一个字符串 836 | - [stream_get_filters](https://www.php.net/manual/zh/function.stream-get-filters.php) — 获取已注册的数据流过滤器列表 837 | - [stream_get_line](https://www.php.net/manual/zh/function.stream-get-line.php) — 从资源流里读取一行直到给定的定界符 838 | - [stream_get_meta_data](https://www.php.net/manual/zh/function.stream-get-meta-data.php) — 从封装协议文件指针中取得报头/元数据 839 | - [stream_get_transports](https://www.php.net/manual/zh/function.stream-get-transports.php) — 获取已注册的套接字传输协议列表 840 | - [stream_get_wrappers](https://www.php.net/manual/zh/function.stream-get-wrappers.php) — 获取已注册的流类型 841 | - [stream_is_local](https://www.php.net/manual/zh/function.stream-is-local.php) — Checks if a stream is a local stream 842 | - [stream_isatty](https://www.php.net/manual/zh/function.stream-isatty.php) — Check if a stream is a TTY 843 | - [stream_notification_callback](https://www.php.net/manual/zh/function.stream-notification-callback.php) — A callback function for the notification context parameter 844 | - [stream_register_wrapper](https://www.php.net/manual/zh/function.stream-register-wrapper.php) — 别名 stream_wrapper_register 845 | - [stream_resolve_include_path](https://www.php.net/manual/zh/function.stream-resolve-include-path.php) — Resolve filename against the include path 846 | - [stream_set_blocking](https://www.php.net/manual/zh/function.stream-set-blocking.php) — 为资源流设置阻塞或者阻塞模式 847 | - [stream_set_chunk_size](https://www.php.net/manual/zh/function.stream-set-chunk-size.php) — 设置资源流区块大小 848 | - [stream_set_read_buffer](https://www.php.net/manual/zh/function.stream-set-read-buffer.php) — Set read file buffering on the given stream 849 | - [stream_set_timeout](https://www.php.net/manual/zh/function.stream-set-timeout.php) — Set timeout period on a stream 850 | - [stream_set_write_buffer](https://www.php.net/manual/zh/function.stream-set-write-buffer.php) — Sets write file buffering on the given stream 851 | - [stream_socket_accept](https://www.php.net/manual/zh/function.stream-socket-accept.php) — 接受由 stream_socket_server 创建的套接字连接 852 | - [stream_socket_client](https://www.php.net/manual/zh/function.stream-socket-client.php) — Open Internet or Unix domain socket connection 853 | - [stream_socket_enable_crypto](https://www.php.net/manual/zh/function.stream-socket-enable-crypto.php) — Turns encryption on/off on an already connected socket 854 | - [stream_socket_get_name](https://www.php.net/manual/zh/function.stream-socket-get-name.php) — 获取本地或者远程的套接字名称 855 | - [stream_socket_pair](https://www.php.net/manual/zh/function.stream-socket-pair.php) — 创建一对完全一样的网络套接字连接流 856 | - [stream_socket_recvfrom](https://www.php.net/manual/zh/function.stream-socket-recvfrom.php) — Receives data from a socket, connected or not 857 | - [stream_socket_sendto](https://www.php.net/manual/zh/function.stream-socket-sendto.php) — Sends a message to a socket, whether it is connected or not 858 | - [stream_socket_server](https://www.php.net/manual/zh/function.stream-socket-server.php) — Create an Internet or Unix domain server socket 859 | - [stream_socket_shutdown](https://www.php.net/manual/zh/function.stream-socket-shutdown.php) — Shutdown a full-duplex connection 860 | - [stream_supports_lock](https://www.php.net/manual/zh/function.stream-supports-lock.php) — Tells whether the stream supports locking 861 | - [stream_wrapper_register](https://www.php.net/manual/zh/function.stream-wrapper-register.php) — 注册一个用 PHP 类实现的 URL 封装协议 862 | - [stream_wrapper_restore](https://www.php.net/manual/zh/function.stream-wrapper-restore.php) — Restores a previously unregistered built-in wrapper 863 | - [stream_wrapper_unregister](https://www.php.net/manual/zh/function.stream-wrapper-unregister.php) — Unregister a URL wrapper 864 | 865 |

SPL

866 | 867 | - [class_implements](https://www.php.net/manual/zh/function.class-implements.php) — 返回指定的类实现的所有接口。 868 | - [class_parents](https://www.php.net/manual/zh/function.class-parents.php) — 返回指定类的父类。 869 | - [class_uses](https://www.php.net/manual/zh/function.class-uses.php) — Return the traits used by the given class 870 | - [iterator_apply](https://www.php.net/manual/zh/function.iterator-apply.php) — 为迭代器中每个元素调用一个用户自定义函数 871 | - [iterator_count](https://www.php.net/manual/zh/function.iterator-count.php) — 计算迭代器中元素的个数 872 | - [iterator_to_array](https://www.php.net/manual/zh/function.iterator-to-array.php) — 将迭代器中的元素拷贝到数组 873 | - [spl_autoload_call](https://www.php.net/manual/zh/function.spl-autoload-call.php) — 尝试调用所有已注册的__autoload()函数来装载请求类 874 | - [spl_autoload_extensions](https://www.php.net/manual/zh/function.spl-autoload-extensions.php) — 注册并返回spl_autoload函数使用的默认文件扩展名。 875 | - [spl_autoload_functions](https://www.php.net/manual/zh/function.spl-autoload-functions.php) — 返回所有已注册的__autoload()函数。 876 | - [spl_autoload_register](https://www.php.net/manual/zh/function.spl-autoload-register.php) — 注册给定的函数作为 __autoload 的实现 877 | - [spl_autoload_unregister](https://www.php.net/manual/zh/function.spl-autoload-unregister.php) — 注销已注册的__autoload()函数 878 | - [spl_autoload](https://www.php.net/manual/zh/function.spl-autoload.php) — __autoload()函数的默认实现 879 | - [spl_classes](https://www.php.net/manual/zh/function.spl-classes.php) — 返回所有可用的SPL类 880 | - [spl_object_hash](https://www.php.net/manual/zh/function.spl-object-hash.php) — 返回指定对象的hash id 881 | - [spl_object_id](https://www.php.net/manual/zh/function.spl-object-id.php) — Return the integer object handle for given object 882 | 883 |

BCMath

884 | 885 | - [bcadd](https://www.php.net/manual/zh/function.bcadd.php) — 2个任意精度数字的加法计算 886 | - [bccomp](https://www.php.net/manual/zh/function.bccomp.php) — 比较两个任意精度的数字 887 | - [bcdiv](https://www.php.net/manual/zh/function.bcdiv.php) — 2个任意精度的数字除法计算 888 | - [bcmod](https://www.php.net/manual/zh/function.bcmod.php) — 对一个任意精度数字取模 889 | - [bcmul](https://www.php.net/manual/zh/function.bcmul.php) — 2个任意精度数字乘法计算 890 | - [bcpow](https://www.php.net/manual/zh/function.bcpow.php) — 任意精度数字的乘方 891 | - [bcpowmod](https://www.php.net/manual/zh/function.bcpowmod.php) — Raise an arbitrary precision number to another, reduced by a specified modulus 892 | - [bcscale](https://www.php.net/manual/zh/function.bcscale.php) — 设置所有bc数学函数的默认小数点保留位数 893 | - [bcsqrt](https://www.php.net/manual/zh/function.bcsqrt.php) — 任意精度数字的二次方根 894 | - [bcsub](https://www.php.net/manual/zh/function.bcsub.php) — 2个任意精度数字的减法 895 | 896 |

杂项

897 | 898 | - [connection_aborted](https://www.php.net/manual/zh/function.connection-aborted.php) — 检查客户端是否已经断开 899 | - [connection_status](https://www.php.net/manual/zh/function.connection-status.php) — 返回连接的状态位 900 | - [constant](https://www.php.net/manual/zh/function.constant.php) — 返回一个常量的值 901 | - [define](https://www.php.net/manual/zh/function.define.php) — 定义一个常量 902 | - [defined](https://www.php.net/manual/zh/function.defined.php) — 检查某个名称的常量是否存在 903 | - [die](https://www.php.net/manual/zh/function.die.php) — 等同于 exit 904 | - [eval](https://www.php.net/manual/zh/function.eval.php) — 把字符串作为PHP代码执行 905 | - [exit](https://www.php.net/manual/zh/function.exit.php) — 输出一个消息并且退出当前脚本 906 | - [get_browser](https://www.php.net/manual/zh/function.get-browser.php) — 获取浏览器具有的功能 907 | - [__halt_compiler](https://www.php.net/manual/zh/function.halt-compiler.php) — 中断编译器的执行 908 | - [highlight_file](https://www.php.net/manual/zh/function.highlight-file.php) — 语法高亮一个文件 909 | - [highlight_string](https://www.php.net/manual/zh/function.highlight-string.php) — 字符串的语法高亮 910 | - [hrtime](https://www.php.net/manual/zh/function.hrtime.php) — Get the system's high resolution time 911 | - [ignore_user_abort](https://www.php.net/manual/zh/function.ignore-user-abort.php) — 设置客户端断开连接时是否中断脚本的执行 912 | - [pack](https://www.php.net/manual/zh/function.pack.php) — 将数据打包成二进制字符串 913 | - [php_check_syntax](https://www.php.net/manual/zh/function.php-check-syntax.php) — 检查PHP的语法(并执行)指定的文件 914 | - [php_strip_whitespace](https://www.php.net/manual/zh/function.php-strip-whitespace.php) — 返回删除注释和空格后的PHP源码 915 | - [sapi_windows_cp_conv](https://www.php.net/manual/zh/function.sapi-windows-cp-conv.php) — Convert string from one codepage to another 916 | - [sapi_windows_cp_get](https://www.php.net/manual/zh/function.sapi-windows-cp-get.php) — Get process codepage 917 | - [sapi_windows_cp_is_utf8](https://www.php.net/manual/zh/function.sapi-windows-cp-is-utf8.php) — Indicates whether the codepage is UTF-8 compatible 918 | - [sapi_windows_cp_set](https://www.php.net/manual/zh/function.sapi-windows-cp-set.php) — Set process codepage 919 | - [sapi_windows_vt100_support](https://www.php.net/manual/zh/function.sapi-windows-vt100-support.php) — Get or set VT100 support for the specified stream associated to an output buffer of a Windows console. 920 | - [show_source](https://www.php.net/manual/zh/function.show-source.php) — 别名 highlight_file 921 | - [sleep](https://www.php.net/manual/zh/function.sleep.php) — 延缓执行 922 | - [sys_getloadavg](https://www.php.net/manual/zh/function.sys-getloadavg.php) — 获取系统的负载(load average) 923 | - [time_nanosleep](https://www.php.net/manual/zh/function.time-nanosleep.php) — 延缓执行若干秒和纳秒 924 | - [time_sleep_until](https://www.php.net/manual/zh/function.time-sleep-until.php) — 使脚本睡眠到指定的时间为止。 925 | - [uniqid](https://www.php.net/manual/zh/function.uniqid.php) — 生成一个唯一ID 926 | - [unpack](https://www.php.net/manual/zh/function.unpack.php) — Unpack data from binary string 927 | - [usleep](https://www.php.net/manual/zh/function.usleep.php) — 以指定的微秒数延迟执行 928 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 一条大河 - php 函数速查表 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 47 |
48 |
49 |

写在前面


50 |

# Author: free-andy

51 |

# Blog: 一条大河

52 |

# Github: php-dict

53 |

# License: Apache 2.0

54 |

# 尊重他人劳动成果,使用请著名出处

55 |
56 |
57 |

数组


58 |

array_change_key_case — 将数组中的所有键名修改为全大写或小写

59 |

array_chunk — 将一个数组分割成多个

60 |

array_column — 返回数组中指定的一列

61 |

array_combine — 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值

62 |

array_count_values — 统计数组中所有的值

63 |

array_diff_assoc — 带索引检查计算数组的差集

64 |

array_diff_key — 使用键名比较计算数组的差集

65 |

array_diff_uassoc — 用用户提供的回调函数做索引检查来计算数组的差集

66 |

array_diff_ukey — 用回调函数对键名比较计算数组的差集

67 |

array_diff — 计算数组的差集

68 |

array_fill_keys — 使用指定的键和值填充数组

69 |

array_fill — 用给定的值填充数组

70 |

array_filter — 用回调函数过滤数组中的单元

71 |

array_flip — 交换数组中的键和值

72 |

array_intersect_assoc — 带索引检查计算数组的交集

73 |

array_intersect_key — 使用键名比较计算数组的交集

74 |

array_intersect_uassoc — 带索引检查计算数组的交集,用回调函数比较索引

75 |

array_intersect_ukey — 用回调函数比较键名来计算数组的交集

76 |

array_intersect — 计算数组的交集

77 |

array_key_exists — 检查数组里是否有指定的键名或索引

78 |

array_key_first — Gets the first key of an array

79 |

array_key_last — Gets the last key of an array

80 |

array_keys — 返回数组中部分的或所有的键名

81 |

array_map — 为数组的每个元素应用回调函数

82 |

array_merge_recursive — 递归地合并一个或多个数组

83 |

array_merge — 合并一个或多个数组

84 |

array_multisort — 对多个数组或多维数组进行排序

85 |

array_pad — 以指定长度将一个值填充进数组

86 |

array_pop — 弹出数组最后一个单元(出栈)

87 |

array_product — 计算数组中所有值的乘积

88 |

array_push — 将一个或多个单元压入数组的末尾(入栈)

89 |

array_rand — 从数组中随机取出一个或多个单元

90 |

array_reduce — 用回调函数迭代地将数组简化为单一的值

91 |

array_replace_recursive — 使用传递的数组递归替换第一个数组的元素

92 |

array_replace — 使用传递的数组替换第一个数组的元素

93 |

array_reverse — 返回单元顺序相反的数组

94 |

array_search — 在数组中搜索给定的值,如果成功则返回首个相应的键名

95 |

array_shift — 将数组开头的单元移出数组

96 |

array_slice — 从数组中取出一段

97 |

array_splice — 去掉数组中的某一部分并用其它值取代

98 |

array_sum — 对数组中所有值求和

99 |

array_udiff_assoc — 带索引检查计算数组的差集,用回调函数比较数据

100 |

array_udiff_uassoc — 带索引检查计算数组的差集,用回调函数比较数据和索引

101 |

array_udiff — 用回调函数比较数据来计算数组的差集

102 |

array_uintersect_assoc — 带索引检查计算数组的交集,用回调函数比较数据

103 |

array_uintersect_uassoc — 带索引检查计算数组的交集,用单独的回调函数比较数据和索引

104 |

array_uintersect — 计算数组的交集,用回调函数比较数据

105 |

array_unique — 移除数组中重复的值

106 |

array_unshift — 在数组开头插入一个或多个单元

107 |

array_values — 返回数组中所有的值

108 |

array_walk_recursive — 对数组中的每个成员递归地应用用户函数

109 |

array_walk — 使用用户自定义函数对数组中的每个元素做回调处理

110 |

array — 新建一个数组

111 |

arsort — 对数组进行逆向排序并保持索引关系

112 |

asort — 对数组进行排序并保持索引关系

113 |

compact — 建立一个数组,包括变量名和它们的值

114 |

count — 计算数组中的单元数目,或对象中的属性个数

115 |

current — 返回数组中的当前单元

116 |

each — 返回数组中当前的键/值对并将数组指针向前移动一步

117 |

end — 将数组的内部指针指向最后一个单元

118 |

extract — 从数组中将变量导入到当前的符号表

119 |

in_array — 检查数组中是否存在某个值

120 |

key_exists — 别名 array_key_exists

121 |

key — 从关联数组中取得键名

122 |

krsort — 对数组按照键名逆向排序

123 |

ksort — 对数组按照键名排序

124 |

list — 把数组中的值赋给一组变量

125 |

natcasesort — 用“自然排序”算法对数组进行不区分大小写字母的排序

126 |

natsort — 用“自然排序”算法对数组排序

127 |

next — 将数组中的内部指针向前移动一位

128 |

pos — current 的别名

129 |

prev — 将数组的内部指针倒回一位

130 |

range — 根据范围创建数组,包含指定的元素

131 |

reset — 将数组的内部指针指向第一个单元

132 |

rsort — 对数组逆向排序

133 |

shuffle — 打乱数组

134 |

sizeof — count 的别名

135 |

sort — 对数组排序

136 |

uasort — 使用用户自定义的比较函数对数组中的值进行排序并保持索引关联

137 |

uksort — 使用用户自定义的比较函数对数组中的键名进行排序

138 |

usort — 使用用户自定义的比较函数对数组中的值进行排序

139 |

字符串


140 |

addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符

141 |

addslashes — 使用反斜线引用字符串

142 |

bin2hex — 函数把包含数据的二进制字符串转换为十六进制值

143 |

chop — rtrim 的别名

144 |

chr — 返回指定的字符

145 |

chunk_split — 将字符串分割成小块

146 |

convert_cyr_string — 将字符由一种 Cyrillic 字符转换成另一种

147 |

convert_uudecode — 解码一个 uuencode 编码的字符串

148 |

convert_uuencode — 使用 uuencode 编码一个字符串

149 |

count_chars — 返回字符串所用字符的信息

150 |

crc32 — 计算一个字符串的 crc32 多项式

151 |

crypt — 单向字符串散列

152 |

echo — 输出一个或多个字符串

153 |

explode — 使用一个字符串分割另一个字符串

154 |

fprintf — 将格式化后的字符串写入到流

155 |

get_html_translation_table — 返回使用 htmlspecialchars 和 htmlentities 后的转换表

156 |

hebrev — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew)

157 |

hebrevc — 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符

158 |

hex2bin — 转换十六进制字符串为二进制字符串

159 |

html_entity_decode — Convert HTML entities to their corresponding characters

160 |

htmlentities — 将字符转换为 HTML 转义字符

161 |

htmlspecialchars_decode — 将特殊的 HTML 实体转换回普通字符

162 |

htmlspecialchars — 将特殊字符转换为 HTML 实体

163 |

implode — 将一个一维数组的值转化为字符串

164 |

join — 别名 implode

165 |

lcfirst — 使一个字符串的第一个字符小写

166 |

levenshtein — 计算两个字符串之间的编辑距离

167 |

localeconv — Get numeric formatting information

168 |

ltrim — 删除字符串开头的空白字符(或其他字符)

169 |

md5_file — 计算指定文件的 MD5 散列值

170 |

md5 — 计算字符串的 MD5 散列值

171 |

metaphone — Calculate the metaphone key of a string

172 |

money_format — 将数字格式化成货币字符串

173 |

nl_langinfo — Query language and locale information

174 |

nl2br — 在字符串所有新行之前插入 HTML 换行标记

175 |

number_format — 以千位分隔符方式格式化一个数字

176 |

ord — 转换字符串第一个字节为 0-255 之间的值

177 |

parse_str — 将字符串解析成多个变量

178 |

print — 输出字符串

179 |

printf — 输出格式化字符串

180 |

quoted_printable_decode — 将 quoted-printable 字符串转换为 8-bit 字符串

181 |

quoted_printable_encode — 将 8-bit 字符串转换成 quoted-printable 字符串

182 |

quotemeta — 转义元字符集

183 |

rtrim — 删除字符串末端的空白字符(或者其他字符)

184 |

setlocale — 设置地区信息

185 |

sha1_file — 计算文件的 sha1 散列值

186 |

sha1 — 计算字符串的 sha1 散列值

187 |

similar_text — 计算两个字符串的相似度

188 |

soundex — Calculate the soundex key of a string

189 |

sprintf — Return a formatted string

190 |

sscanf — 根据指定格式解析输入的字符

191 |

str_getcsv — 解析 CSV 字符串为一个数组

192 |

str_ireplace — str_replace 的忽略大小写版本

193 |

str_pad — 使用另一个字符串填充字符串为指定长度

194 |

str_repeat — 重复一个字符串

195 |

str_replace — 子字符串替换

196 |

str_rot13 — 对字符串执行 ROT13 转换

197 |

str_shuffle — 随机打乱一个字符串

198 |

str_split — 将字符串转换为数组

199 |

str_word_count — 返回字符串中单词的使用情况

200 |

strcasecmp — 二进制安全比较字符串(不区分大小写)

201 |

strchr — 别名 strstr

202 |

strcmp — 二进制安全字符串比较

203 |

strcoll — 基于区域设置的字符串比较

204 |

strcspn — 获取不匹配遮罩的起始子字符串的长度

205 |

strip_tags — 从字符串中去除 HTML 和 PHP 标记

206 |

stripcslashes — 反引用一个使用 addcslashes 转义的字符串

207 |

stripos — 查找字符串首次出现的位置(不区分大小写)

208 |

stripslashes — 反引用一个引用字符串

209 |

stristr — strstr 函数的忽略大小写版本

210 |

strlen — 获取字符串长度

211 |

strnatcasecmp — 使用“自然顺序”算法比较字符串(不区分大小写)

212 |

strnatcmp — 使用自然排序算法比较字符串

213 |

strncasecmp — 二进制安全比较字符串开头的若干个字符(不区分大小写)

214 |

strncmp — 二进制安全比较字符串开头的若干个字符

215 |

strpbrk — 在字符串中查找一组字符的任何一个字符

216 |

strpos — 查找字符串首次出现的位置

217 |

strrchr — 查找指定字符在字符串中的最后一次出现

218 |

strrev — 反转字符串

219 |

strripos — 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)

220 |

strrpos — 计算指定字符串在目标字符串中最后一次出现的位置

221 |

strspn — 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。

222 |

strstr — 查找字符串的首次出现

223 |

strtok — 标记分割字符串

224 |

strtolower — 将字符串转化为小写

225 |

strtoupper — 将字符串转化为大写

226 |

strtr — 转换指定字符

227 |

substr_compare — 二进制安全比较字符串(从偏移位置比较指定长度)

228 |

substr_count — 计算字串出现的次数

229 |

substr_replace — 替换字符串的子串

230 |

substr — 返回字符串的子串

231 |

trim — 去除字符串首尾处的空白字符(或者其他字符)

232 |

ucfirst — 将字符串的首字母转换为大写

233 |

ucwords — 将字符串中每个单词的首字母转换为大写

234 |

vfprintf — 将格式化字符串写入流

235 |

vprintf — 输出格式化字符串

236 |

vsprintf — 返回格式化字符串

237 |

wordwrap — 打断字符串为指定数量的字串

238 |

多字节字符串


239 |

mb_check_encoding — 检查字符串在指定的编码里是否有效

240 |

mb_chr — Get a specific character

241 |

mb_convert_case — 对字符串进行大小写转换

242 |

mb_convert_encoding — 转换字符的编码

243 |

mb_convert_kana — Convert "kana" one from another ("zen-kaku", "han-kaku" and more)

244 |

mb_convert_variables — 转换一个或多个变量的字符编码

245 |

mb_decode_mimeheader — 解码 MIME 头字段中的字符串

246 |

mb_decode_numericentity — 根据 HTML 数字字符串解码成字符

247 |

mb_detect_encoding — 检测字符的编码

248 |

mb_detect_order — 设置/获取 字符编码的检测顺序

249 |

mb_encode_mimeheader — 为 MIME 头编码字符串

250 |

mb_encode_numericentity — Encode character to HTML numeric string reference

251 |

mb_encoding_aliases — Get aliases of a known encoding type

252 |

mb_ereg_match — Regular expression match for multibyte string

253 |

mb_ereg_replace_callback — Perform a regular expression search and replace with multibyte support using a callback

254 |

mb_ereg_replace — Replace regular expression with multibyte support

255 |

mb_ereg_search_getpos — Returns start point for next regular expression match

256 |

mb_ereg_search_getregs — Retrieve the result from the last multibyte regular expression match

257 |

mb_ereg_search_init — Setup string and regular expression for a multibyte regular expression match

258 |

mb_ereg_search_pos — Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string

259 |

mb_ereg_search_regs — Returns the matched part of a multibyte regular expression

260 |

mb_ereg_search_setpos — Set start point of next regular expression match

261 |

mb_ereg_search — Multibyte regular expression match for predefined multibyte string

262 |

mb_ereg — Regular expression match with multibyte support

263 |

mb_eregi_replace — Replace regular expression with multibyte support ignoring case

264 |

mb_eregi — Regular expression match ignoring case with multibyte support

265 |

mb_get_info — 获取 mbstring 的内部设置

266 |

mb_http_input — 检测 HTTP 输入字符编码

267 |

mb_http_output — 设置/获取 HTTP 输出字符编码

268 |

mb_internal_encoding — 设置/获取内部字符编码

269 |

mb_language — 设置/获取当前的语言

270 |

mb_list_encodings — 返回所有支持编码的数组

271 |

mb_ord — Get code point of character

272 |

mb_output_handler — 在输出缓冲中转换字符编码的回调函数

273 |

mb_parse_str — 解析 GET/POST/COOKIE 数据并设置全局变量

274 |

mb_preferred_mime_name — 获取 MIME 字符串

275 |

mb_regex_encoding — Set/Get character encoding for multibyte regex

276 |

mb_regex_set_options — Set/Get the default options for mbregex functions

277 |

mb_scrub — Description

278 |

mb_send_mail — 发送编码过的邮件

279 |

mb_split — 使用正则表达式分割多字节字符串

280 |

mb_strcut — 获取字符的一部分

281 |

mb_strimwidth — 获取按指定宽度截断的字符串

282 |

mb_stripos — 大小写不敏感地查找字符串在另一个字符串中首次出现的位置

283 |

mb_stristr — 大小写不敏感地查找字符串在另一个字符串里的首次出现

284 |

mb_strlen — 获取字符串的长度

285 |

mb_strpos — 查找字符串在另一个字符串中首次出现的位置

286 |

mb_strrchr — 查找指定字符在另一个字符串中最后一次的出现

287 |

mb_strrichr — 大小写不敏感地查找指定字符在另一个字符串中最后一次的出现

288 |

mb_strripos — 大小写不敏感地在字符串中查找一个字符串最后出现的位置

289 |

mb_strrpos — 查找字符串在一个字符串中最后出现的位置

290 |

mb_strstr — 查找字符串在另一个字符串里的首次出现

291 |

mb_strtolower — 使字符串小写

292 |

mb_strtoupper — 使字符串大写

293 |

mb_strwidth — 返回字符串的宽度

294 |

mb_substitute_character — 设置/获取替代字符

295 |

mb_substr_count — 统计字符串出现的次数

296 |

mb_substr — 获取部分字符串

297 |

变量处理


298 |

boolval — 获取变量的布尔值

299 |

debug_zval_dump — Dumps a string representation of an internal zend value to output

300 |

doubleval — floatval 的别名

301 |

empty — 检查一个变量是否为空

302 |

floatval — 获取变量的浮点值

303 |

get_defined_vars — 返回由所有已定义变量所组成的数组

304 |

get_resource_type — 返回资源(resource)类型

305 |

gettype — 获取变量的类型

306 |

import_request_variables — 将 GET/POST/Cookie 变量导入到全局作用域中

307 |

intval — 获取变量的整数值

308 |

is_array — 检测变量是否是数组

309 |

is_bool — 检测变量是否是布尔型

310 |

is_callable — 检测参数是否为合法的可调用结构

311 |

is_countable — Verify that the contents of a variable is a countable value

312 |

is_double — is_float 的别名

313 |

is_float — 检测变量是否是浮点型

314 |

is_int — 检测变量是否是整数

315 |

is_integer — is_int 的别名

316 |

is_iterable — Verify that the contents of a variable is an iterable value

317 |

is_long — is_int 的别名

318 |

is_null — 检测变量是否为 NULL

319 |

is_numeric — 检测变量是否为数字或数字字符串

320 |

is_object — 检测变量是否是一个对象

321 |

is_real — is_float 的别名

322 |

is_resource — 检测变量是否为资源类型

323 |

is_scalar — 检测变量是否是一个标量

324 |

is_string — 检测变量是否是字符串

325 |

isset — 检测变量是否已设置并且非 NULL

326 |

print_r — 以易于理解的格式打印变量。

327 |

serialize — 产生一个可存储的值的表示

328 |

settype — 设置变量的类型

329 |

strval — 获取变量的字符串值

330 |

unserialize — 从已存储的表示中创建 PHP 的值

331 |

unset — 释放给定的变量

332 |

var_dump — 打印变量的相关信息

333 |

var_export — 输出或返回一个变量的字符串表示

334 |

文件系统


335 |

basename — 返回路径中的文件名部分

336 |

chgrp — 改变文件所属的组

337 |

chmod — 改变文件模式

338 |

chown — 改变文件的所有者

339 |

clearstatcache — 清除文件状态缓存

340 |

copy — 拷贝文件

341 |

delete — 参见 unlink 或 unset

342 |

dirname — 返回路径中的目录部分

343 |

disk_free_space — 返回目录中的可用空间

344 |

disk_total_space — 返回一个目录的磁盘总大小

345 |

diskfreespace — disk_free_space 的别名

346 |

fclose — 关闭一个已打开的文件指针

347 |

feof — 测试文件指针是否到了文件结束的位置

348 |

fflush — 将缓冲内容输出到文件

349 |

fgetc — 从文件指针中读取字符

350 |

fgetcsv — 从文件指针中读入一行并解析 CSV 字段

351 |

fgets — 从文件指针中读取一行

352 |

fgetss — 从文件指针中读取一行并过滤掉 HTML 标记

353 |

file_exists — 检查文件或目录是否存在

354 |

file_get_contents — 将整个文件读入一个字符串

355 |

file_put_contents — 将一个字符串写入文件

356 |

file — 把整个文件读入一个数组中

357 |

fileatime — 取得文件的上次访问时间

358 |

filectime — 取得文件的 inode 修改时间

359 |

filegroup — 取得文件的组

360 |

fileinode — 取得文件的 inode

361 |

filemtime — 取得文件修改时间

362 |

fileowner — 取得文件的所有者

363 |

fileperms — 取得文件的权限

364 |

filesize — 取得文件大小

365 |

filetype — 取得文件类型

366 |

flock — 轻便的咨询文件锁定

367 |

fnmatch — 用模式匹配文件名

368 |

fopen — 打开文件或者 URL

369 |

fpassthru — 输出文件指针处的所有剩余数据

370 |

fputcsv — 将行格式化为 CSV 并写入文件指针

371 |

fputs — fwrite 的别名

372 |

fread — 读取文件(可安全用于二进制文件)

373 |

fscanf — 从文件中格式化输入

374 |

fseek — 在文件指针中定位

375 |

fstat — 通过已打开的文件指针取得文件信息

376 |

ftell — 返回文件指针读/写的位置

377 |

ftruncate — 将文件截断到给定的长度

378 |

fwrite — 写入文件(可安全用于二进制文件)

379 |

glob — 寻找与模式匹配的文件路径

380 |

is_dir — 判断给定文件名是否是一个目录

381 |

is_executable — 判断给定文件名是否可执行

382 |

is_file — 判断给定文件名是否为一个正常的文件

383 |

is_link — 判断给定文件名是否为一个符号连接

384 |

is_readable — 判断给定文件名是否可读

385 |

is_uploaded_file — 判断文件是否是通过 HTTP POST 上传的

386 |

is_writable — 判断给定的文件名是否可写

387 |

is_writeable — is_writable 的别名

388 |

lchgrp — 修改符号链接的所有组

389 |

lchown — 修改符号链接的所有者

390 |

link — 建立一个硬连接

391 |

linkinfo — 获取一个连接的信息

392 |

lstat — 给出一个文件或符号连接的信息

393 |

mkdir — 新建目录

394 |

move_uploaded_file — 将上传的文件移动到新位置

395 |

parse_ini_file — 解析一个配置文件

396 |

parse_ini_string — 解析配置字符串

397 |

pathinfo — 返回文件路径的信息

398 |

pclose — 关闭进程文件指针

399 |

popen — 打开进程文件指针

400 |

readfile — 输出文件

401 |

readlink — 返回符号连接指向的目标

402 |

realpath_cache_get — 获取真实目录缓存的详情

403 |

realpath_cache_size — 获取真实路径缓冲区的大小

404 |

realpath — 返回规范化的绝对路径名

405 |

rename — 重命名一个文件或目录

406 |

rewind — 倒回文件指针的位置

407 |

rmdir — 删除目录

408 |

set_file_buffer — stream_set_write_buffer 的别名

409 |

stat — 给出文件的信息

410 |

symlink — 建立符号连接

411 |

tempnam — 建立一个具有唯一文件名的文件

412 |

tmpfile — 建立一个临时文件

413 |

touch — 设定文件的访问和修改时间

414 |

umask — 改变当前的 umask

415 |

unlink — 删除文件

416 |

目录处理


417 |

chdir — 改变目录

418 |

chroot — 改变根目录

419 |

closedir — 关闭目录句柄

420 |

dir — 返回一个 Directory 类实例

421 |

getcwd — 取得当前工作目录

422 |

opendir — 打开目录句柄

423 |

readdir — 从目录句柄中读取条目

424 |

rewinddir — 倒回目录句柄

425 |

scandir — 列出指定路径中的文件和目录

426 |

数学


427 |

abs — 绝对值

428 |

acos — 反余弦

429 |

acosh — 反双曲余弦

430 |

asin — 反正弦

431 |

asinh — 反双曲正弦

432 |

atan2 — 两个参数的反正切

433 |

atan — 反正切

434 |

atanh — 反双曲正切

435 |

base_convert — 在任意进制之间转换数字

436 |

bindec — 二进制转换为十进制

437 |

ceil — 进一法取整

438 |

cos — 余弦

439 |

cosh — 双曲余弦

440 |

decbin — 十进制转换为二进制

441 |

dechex — 十进制转换为十六进制

442 |

decoct — 十进制转换为八进制

443 |

deg2rad — 将角度转换为弧度

444 |

exp — 计算 e 的指数

445 |

expm1 — 返回 exp(number) - 1,甚至当 number 的值接近零也能计算出准确结果

446 |

floor — 舍去法取整

447 |

fmod — 返回除法的浮点数余数

448 |

getrandmax — 显示随机数最大的可能值

449 |

hexdec — 十六进制转换为十进制

450 |

hypot — 计算一直角三角形的斜边长度

451 |

intdiv — 对除法结果取整

452 |

is_finite — 判断是否为有限值

453 |

is_infinite — 判断是否为无限值

454 |

is_nan — 判断是否为合法数值

455 |

lcg_value — 组合线性同余发生器

456 |

log10 — 以 10 为底的对数

457 |

log1p — 返回 log(1 + number),甚至当 number 的值接近零也能计算出准确结果

458 |

log — 自然对数

459 |

max — 找出最大值

460 |

min — 找出最小值

461 |

mt_getrandmax — 显示随机数的最大可能值

462 |

mt_rand — 生成更好的随机数

463 |

mt_srand — 播下一个更好的随机数发生器种子

464 |

octdec — 八进制转换为十进制

465 |

pi — 得到圆周率值

466 |

pow — 指数表达式

467 |

rad2deg — 将弧度数转换为相应的角度数

468 |

rand — 产生一个随机整数

469 |

round — 对浮点数进行四舍五入

470 |

sin — 正弦

471 |

sinh — 双曲正弦

472 |

sqrt — 平方根

473 |

srand — 播下随机数发生器种子

474 |

tan — 正切

475 |

tanh — 双曲正切

476 |

类和对象


477 |

__autoload — 尝试加载未定义的类

478 |

call_user_method_array — 以参数列表的数组,调用用户方法

479 |

call_user_method — 对特定对象调用用户方法

480 |

class_alias — 为一个类创建别名

481 |

class_exists — 检查类是否已定义

482 |

get_called_class — 后期静态绑定("Late Static Binding")类的名称

483 |

get_class_methods — 返回由类的方法名组成的数组

484 |

get_class_vars — 返回由类的默认属性组成的数组

485 |

get_class — 返回对象的类名

486 |

get_declared_classes — 返回由已定义类的名字所组成的数组

487 |

get_declared_interfaces — 返回一个数组包含所有已声明的接口

488 |

get_declared_traits — 返回所有已定义的 traits 的数组

489 |

get_object_vars — 返回由对象属性组成的关联数组

490 |

get_parent_class — 返回对象或类的父类名

491 |

interface_exists — 检查接口是否已被定义

492 |

is_a — 如果对象属于该类或该类是此对象的父类则返回 TRUE

493 |

is_subclass_of — 如果此对象是该类的子类,则返回 TRUE

494 |

method_exists — 检查类的方法是否存在

495 |

property_exists — 检查对象或类是否具有该属性

496 |

trait_exists — 检查指定的 trait 是否存在

497 |

字符类型检测


498 |

ctype_alnum — 做字母和数字字符检测

499 |

ctype_alpha — 做纯字符检测

500 |

ctype_cntrl — 做控制字符检测

501 |

ctype_digit — 做纯数字检测

502 |

ctype_graph — 做可打印字符串检测,空格除外

503 |

ctype_lower — 做小写字符检测

504 |

ctype_print — 做可打印字符检测

505 |

ctype_punct — 检测可打印的字符是不是不包含空白、数字和字母

506 |

ctype_space — 做空白字符检测

507 |

ctype_upper — 做大写字母检测

508 |

ctype_xdigit — 检测字符串是否只包含十六进制字符

509 |

日期和时间


510 |

checkdate — 验证一个格里高里日期

511 |

date_add — 别名 DateTime::add

512 |

date_create_from_format — 别名 DateTime::createFromFormat

513 |

date_create_immutable_from_format — 别名 DateTimeImmutable::createFromFormat

514 |

date_create_immutable — 别名 DateTimeImmutable::__construct

515 |

date_create — 别名 DateTime::__construct

516 |

date_date_set — 别名 DateTime::setDate

517 |

date_default_timezone_get — 取得一个脚本中所有日期时间函数所使用的默认时区

518 |

date_default_timezone_set — 设定用于一个脚本中所有日期时间函数的默认时区

519 |

date_diff — 别名 DateTime::diff

520 |

date_format — 别名 DateTime::format

521 |

date_get_last_errors — 别名 DateTime::getLastErrors

522 |

date_interval_create_from_date_string — 别名 DateInterval::createFromDateString

523 |

date_interval_format — 别名 DateInterval::format

524 |

date_isodate_set — 别名 DateTime::setISODate

525 |

date_modify — 别名 DateTime::modify

526 |

date_offset_get — 别名 DateTime::getOffset

527 |

date_parse_from_format — Get info about given date formatted according to the specified format

528 |

date_parse — Returns associative array with detailed info about given date

529 |

date_sub — 别名 DateTime::sub

530 |

date_sun_info — Returns an array with information about sunset/sunrise and twilight begin/end

531 |

date_sunrise — 返回给定的日期与地点的日出时间

532 |

date_sunset — 返回给定的日期与地点的日落时间

533 |

date_time_set — 别名 DateTime::setTime

534 |

date_timestamp_get — 别名 DateTime::getTimestamp

535 |

date_timestamp_set — 别名 DateTime::setTimestamp

536 |

date_timezone_get — 别名 DateTime::getTimezone

537 |

date_timezone_set — 别名 DateTime::setTimezone

538 |

date — 格式化一个本地时间/日期

539 |

getdate — 取得日期/时间信息

540 |

gettimeofday — 取得当前时间

541 |

gmdate — 格式化一个 GMT/UTC 日期/时间

542 |

gmmktime — 取得 GMT 日期的 UNIX 时间戳

543 |

gmstrftime — 根据区域设置格式化 GMT/UTC 时间/日期

544 |

idate — 将本地时间日期格式化为整数

545 |

localtime — 取得本地时间

546 |

microtime — 返回当前 Unix 时间戳和微秒数

547 |

mktime — 取得一个日期的 Unix 时间戳

548 |

strftime — 根据区域设置格式化本地时间/日期

549 |

strptime — 解析由 strftime 生成的日期/时间

550 |

strtotime — 将任何字符串的日期时间描述解析为 Unix 时间戳

551 |

time — 返回当前的 Unix 时间戳

552 |

timezone_abbreviations_list — 别名 DateTimeZone::listAbbreviations

553 |

timezone_identifiers_list — 别名 DateTimeZone::listIdentifiers

554 |

timezone_location_get — 别名 DateTimeZone::getLocation

555 |

timezone_name_from_abbr — Returns the timezone name from abbreviation

556 |

timezone_name_get — 别名 DateTimeZone::getName

557 |

timezone_offset_get — 别名 DateTimeZone::getOffset

558 |

timezone_open — 别名 DateTimeZone::__construct

559 |

timezone_transitions_get — 别名 DateTimeZone::getTransitions

560 |

timezone_version_get — Gets the version of the timezonedb

561 |

CURL


562 |

curl_close — 关闭 cURL 会话

563 |

curl_copy_handle — 复制一个cURL句柄和它的所有选项

564 |

curl_errno — 返回最后一次的错误代码

565 |

curl_error — 返回当前会话最后一次错误的字符串

566 |

curl_escape — 使用 URL 编码给定的字符串

567 |

curl_exec — 执行 cURL 会话

568 |

curl_file_create — 创建一个 CURLFile 对象

569 |

curl_getinfo — 获取一个cURL连接资源句柄的信息

570 |

curl_init — 初始化 cURL 会话

571 |

curl_multi_add_handle — 向curl批处理会话中添加单独的curl句柄

572 |

curl_multi_close — 关闭一组cURL句柄

573 |

curl_multi_errno — 返回上一次 curl 批处理的错误码

574 |

curl_multi_exec — 运行当前 cURL 句柄的子连接

575 |

curl_multi_getcontent — 如果设置了CURLOPT_RETURNTRANSFER,则返回获取的输出的文本流

576 |

curl_multi_info_read — 获取当前解析的cURL的相关传输信息

577 |

curl_multi_init — 返回一个新cURL批处理句柄

578 |

curl_multi_remove_handle — 移除cURL批处理句柄资源中的某个句柄资源

579 |

curl_multi_select — 等待所有cURL批处理中的活动连接

580 |

curl_multi_setopt — 为 cURL 并行处理设置一个选项

581 |

curl_multi_strerror — 返回字符串描述的错误代码

582 |

curl_pause — 暂停和取消暂停一个连接。

583 |

curl_reset — 重置一个 libcurl 会话句柄的所有的选项

584 |

curl_setopt_array — 为 cURL 传输会话批量设置选项

585 |

curl_setopt — 设置 cURL 传输选项

586 |

curl_share_close — 关闭 cURL 共享句柄

587 |

curl_share_errno — 返回共享 curl 句柄的最后一次错误号

588 |

curl_share_init — 初始化一个 cURL 共享句柄。

589 |

curl_share_setopt — 为 cURL 共享句柄设置选项。

590 |

curl_share_strerror — 返回错误号对应的错误消息

591 |

curl_strerror — 返回错误代码的字符串描述

592 |

curl_unescape — 解码给定的 URL 编码的字符串

593 |

curl_version — 获取 cURL 版本信息

594 |

过滤器


595 |

filter_has_var — 检测是否存在指定类型的变量

596 |

filter_id — 返回与某个特定名称的过滤器相关联的id

597 |

filter_input_array — 获取一系列外部变量,并且可以通过过滤器处理它们

598 |

filter_input — 通过名称获取特定的外部变量,并且可以通过过滤器处理它

599 |

filter_list — 返回所支持的过滤器列表

600 |

filter_var_array — 获取多个变量并且过滤它们

601 |

filter_var — 使用特定的过滤器过滤一个变量

602 |

函数处理


603 |

call_user_func_array — 调用回调函数,并把一个数组参数作为回调函数的参数

604 |

call_user_func — 把第一个参数作为回调函数调用

605 |

create_function — Create an anonymous (lambda-style) function

606 |

forward_static_call_array — Call a static method and pass the arguments as array

607 |

forward_static_call — Call a static method

608 |

func_get_arg — 返回参数列表的某一项

609 |

func_get_args — 返回一个包含函数参数列表的数组

610 |

func_num_args — Returns the number of arguments passed to the function

611 |

function_exists — 如果给定的函数已经被定义就返回 TRUE

612 |

get_defined_functions — 返回所有已定义函数的数组

613 |

register_shutdown_function — 注册一个会在php中止时执行的函数

614 |

register_tick_function — Register a function for execution on each tick

615 |

unregister_tick_function — De-register a function for execution on each tick

616 |

正则处理


617 |

preg_filter — 执行一个正则表达式搜索和替换

618 |

preg_grep — 返回匹配模式的数组条目

619 |

preg_last_error — 返回最后一个PCRE正则执行产生的错误代码

620 |

preg_match_all — 执行一个全局正则表达式匹配

621 |

preg_match — 执行匹配正则表达式

622 |

preg_quote — 转义正则表达式字符

623 |

preg_replace_callback_array — Perform a regular expression search and replace using callbacks

624 |

preg_replace_callback — 执行一个正则表达式搜索并且使用一个回调进行替换

625 |

preg_replace — 执行一个正则表达式的搜索和替换

626 |

preg_split — 通过一个正则表达式分隔字符串

627 |

网络


628 |

checkdnsrr — 给指定的主机(域名)或者IP地址做DNS通信检查

629 |

closelog — 关闭系统日志链接

630 |

define_syslog_variables — Initializes all syslog related variables

631 |

dns_check_record — 别名 checkdnsrr

632 |

dns_get_mx — 别名 getmxrr

633 |

dns_get_record — 获取指定主机的DNS记录

634 |

fsockopen — 打开一个网络连接或者一个Unix套接字连接

635 |

gethostbyaddr — 获取指定的IP地址对应的主机名

636 |

gethostbyname — 返回主机名对应的 IPv4地址。

637 |

gethostbynamel — 获取互联网主机名对应的 IPv4 地址列表

638 |

gethostname — 获取主机名

639 |

getmxrr — 获取互联网主机名对应的 MX 记录

640 |

getprotobyname — Get protocol number associated with protocol name

641 |

getprotobynumber — Get protocol name associated with protocol number

642 |

getservbyname — 获取互联网服务协议对应的端口

643 |

getservbyport — Get Internet service which corresponds to port and protocol

644 |

header_register_callback — 调用一个 header 函数

645 |

header_remove — 删除之前设置的 HTTP 头

646 |

header — 发送原生 HTTP 头

647 |

headers_list — 返回已发送的 HTTP 响应头(或准备发送的)

648 |

headers_sent — 检测 HTTP 头是否已经发送

649 |

http_response_code — 获取/设置响应的 HTTP 状态码

650 |

inet_ntop — Converts a packed internet address to a human readable representation

651 |

inet_pton — Converts a human readable IP address to its packed in_addr representation

652 |

ip2long — 将 IPV4 的字符串互联网协议转换成长整型数字

653 |

long2ip — 将长整型转化为字符串形式带点的互联网标准格式地址(IPV4)

654 |

openlog — Open connection to system logger

655 |

pfsockopen — 打开一个持久的网络连接或者Unix套接字连接。

656 |

setcookie — 发送 Cookie

657 |

setrawcookie — 发送未经 URL 编码的 cookie

658 |

socket_get_status — 别名 stream_get_meta_data

659 |

socket_set_blocking — 别名 stream_set_blocking

660 |

socket_set_timeout — 别名 stream_set_timeout

661 |

syslog — Generate a system log message

662 |

程序执行


663 |

escapeshellarg — 把字符串转码为可以在 shell 命令里使用的参数

664 |

escapeshellcmd — shell 元字符转义

665 |

exec — 执行一个外部程序

666 |

passthru — 执行外部程序并且显示原始输出

667 |

proc_close — 关闭由 proc_open 打开的进程并且返回进程退出码

668 |

proc_get_status — 获取由 proc_open 函数打开的进程的信息

669 |

proc_nice — 修改当前进程的优先级

670 |

proc_open — 执行一个命令,并且打开用来输入/输出的文件指针。

671 |

proc_terminate — 杀除由 proc_open 打开的进程

672 |

shell_exec — 通过 shell 环境执行命令,并且将完整的输出以字符串的方式返回。

673 |

system — 执行外部程序,并且显示输出

674 |

PHP选项和信息


675 |

assert_options — 设置/获取断言的各种标志

676 |

assert — 检查一个断言是否为 FALSE

677 |

cli_get_process_title — Returns the current process title

678 |

cli_set_process_title — Sets the process title

679 |

dl — 运行时载入一个 PHP 扩展

680 |

extension_loaded — 检查一个扩展是否已经加载

681 |

gc_collect_cycles — 强制收集所有现存的垃圾循环周期

682 |

gc_disable — 停用循环引用收集器

683 |

gc_enable — 激活循环引用收集器

684 |

gc_enabled — 返回循环引用计数器的状态

685 |

gc_mem_caches — Reclaims memory used by the Zend Engine memory manager

686 |

gc_status — Gets information about the garbage collector

687 |

get_cfg_var — 获取 PHP 配置选项的值

688 |

get_current_user — 获取当前 PHP 脚本所有者名称

689 |

get_defined_constants — 返回所有常量的关联数组,键是常量名,值是常量值

690 |

get_extension_funcs — 返回模块函数名称的数组

691 |

get_include_path — 获取当前的 include_path 配置选项

692 |

get_included_files — 返回被 include 和 require 文件名的 array

693 |

get_loaded_extensions — 返回所有编译并加载模块名的 array

694 |

get_magic_quotes_gpc — 获取当前 magic_quotes_gpc 的配置选项设置

695 |

get_magic_quotes_runtime — 获取当前 magic_quotes_runtime 配置选项的激活状态

696 |

get_required_files — 别名 get_included_files

697 |

get_resources — Returns active resources

698 |

getenv — 获取一个环境变量的值

699 |

getlastmod — 获取页面最后修改的时间

700 |

getmygid — 获取当前 PHP 脚本拥有者的 GID

701 |

getmyinode — 获取当前脚本的索引节点(inode)

702 |

getmypid — 获取 PHP 进程的 ID

703 |

getmyuid — 获取 PHP 脚本所有者的 UID

704 |

getopt — 从命令行参数列表中获取选项

705 |

getrusage — 获取当前资源使用状况

706 |

ini_alter — 别名 ini_set

707 |

ini_get_all — 获取所有配置选项

708 |

ini_get — 获取一个配置选项的值

709 |

ini_restore — 恢复配置选项的值

710 |

ini_set — 为一个配置选项设置值

711 |

magic_quotes_runtime — 别名 set_magic_quotes_runtime

712 |

main — 虚拟的main

713 |

memory_get_peak_usage — 返回分配给 PHP 内存的峰值

714 |

memory_get_usage — 返回分配给 PHP 的内存量

715 |

php_ini_loaded_file — 取得已加载的 php.ini 文件的路径

716 |

php_ini_scanned_files — 返回从额外 ini 目录里解析的 .ini 文件列表

717 |

php_logo_guid — 获取 logo 的 guid

718 |

php_sapi_name — 返回 web 服务器和 PHP 之间的接口类型

719 |

php_uname — 返回运行 PHP 的系统的有关信息

720 |

phpcredits — 打印 PHP 贡献者名单

721 |

phpinfo — 输出关于 PHP 配置的信息

722 |

phpversion — 获取当前的PHP版本

723 |

putenv — 设置环境变量的值

724 |

restore_include_path — 还原 include_path 配置选项的值

725 |

set_include_path — 设置 include_path 配置选项

726 |

set_magic_quotes_runtime — 设置当前 magic_quotes_runtime 配置选项的激活状态

727 |

set_time_limit — 设置脚本最大执行时间

728 |

sys_get_temp_dir — 返回用于临时文件的目录

729 |

version_compare — 对比两个「PHP 规范化」的版本数字字符串

730 |

zend_logo_guid — 获取 Zend guid

731 |

zend_thread_id — 返回当前线程的唯一识别符

732 |

zend_version — 获取当前 Zend 引擎的版本

733 |

错误处理


734 |

debug_backtrace — 产生一条回溯跟踪(backtrace)

735 |

debug_print_backtrace — 打印一条回溯。

736 |

error_clear_last — 清除最近一次错误

737 |

error_get_last — 获取最后发生的错误

738 |

error_log — 发送错误信息到某个地方

739 |

error_reporting — 设置应该报告何种 PHP 错误

740 |

restore_error_handler — 还原之前的错误处理函数

741 |

restore_exception_handler — 恢复之前定义过的异常处理函数。

742 |

set_error_handler — 设置用户自定义的错误处理函数

743 |

set_exception_handler — 设置用户自定义的异常处理函数

744 |

trigger_error — 产生一个用户级别的 error/warning/notice 信息

745 |

user_error — trigger_error 的别名

746 |

输出缓冲控制


747 |

flush — 刷新输出缓冲

748 |

ob_clean — 清空(擦掉)输出缓冲区

749 |

ob_end_clean — 清空(擦除)缓冲区并关闭输出缓冲

750 |

ob_end_flush — 冲刷出(送出)输出缓冲区内容并关闭缓冲

751 |

ob_flush — 冲刷出(送出)输出缓冲区中的内容

752 |

ob_get_clean — 得到当前缓冲区的内容并删除当前输出缓。

753 |

ob_get_contents — 返回输出缓冲区的内容

754 |

ob_get_flush — 刷出(送出)缓冲区内容,以字符串形式返回内容,并关闭输出缓冲区。

755 |

ob_get_length — 返回输出缓冲区内容的长度

756 |

ob_get_level — 返回输出缓冲机制的嵌套级别

757 |

ob_get_status — 得到所有输出缓冲区的状态

758 |

ob_gzhandler — 在ob_start中使用的用来压缩输出缓冲区中内容的回调函数。ob_start callback function to gzip output buffer

759 |

ob_implicit_flush — 打开/关闭绝对刷送

760 |

ob_list_handlers — 列出所有使用中的输出处理程序。

761 |

ob_start — 打开输出控制缓冲

762 |

output_add_rewrite_var — 添加URL重写器的值(Add URL rewriter values)

763 |

output_reset_rewrite_vars — 重设URL重写器的值(Reset URL rewriter values)

764 |

密码散列算法


765 |

password_get_info — 返回指定散列(hash)的相关信息

766 |

password_hash — 创建密码的散列(hash)

767 |

password_needs_rehash — 检测散列值是否匹配指定的选项

768 |

password_verify — 验证密码是否和散列值匹配

769 |

Session


770 |

session_abort — Discard session array changes and finish session

771 |

session_cache_expire — 返回当前缓存的到期时间

772 |

session_cache_limiter — 读取/设置缓存限制器

773 |

session_commit — session_write_close 的别名

774 |

session_create_id — Create new session id

775 |

session_decode — 解码会话数据

776 |

session_destroy — 销毁一个会话中的全部数据

777 |

session_encode — 将当前会话数据编码为一个字符串

778 |

session_gc — Perform session data garbage collection

779 |

session_get_cookie_params — 获取会话 cookie 参数

780 |

session_id — 获取/设置当前会话 ID

781 |

session_is_registered — 检查变量是否在会话中已经注册

782 |

session_module_name — 获取/设置会话模块名称

783 |

session_name — 读取/设置会话名称

784 |

session_regenerate_id — 使用新生成的会话 ID 更新现有会话 ID

785 |

session_register_shutdown — 关闭会话

786 |

session_register — Register one or more global variables with the current session

787 |

session_reset — Re-initialize session array with original values

788 |

session_save_path — 读取/设置当前会话的保存路径

789 |

session_set_cookie_params — 设置会话 cookie 参数

790 |

session_set_save_handler — 设置用户自定义会话存储函数

791 |

session_start — 启动新会话或者重用现有会话

792 |

session_status — 返回当前会话状态

793 |

session_unregister — Unregister a global variable from the current session

794 |

session_unset — 释放所有的会话变量

795 |

session_write_close — Write session data and end session

796 |

JSON


797 |

json_decode — 对 JSON 格式的字符串进行解码

798 |

json_encode — 对变量进行 JSON 编码

799 |

json_last_error_msg — Returns the error string of the last json_encode() or json_decode() call

800 |

json_last_error — 返回最后发生的错误

801 |

Stream


802 |

set_socket_blocking — 别名 stream_set_blocking

803 |

stream_bucket_append — Append bucket to brigade

804 |

stream_bucket_make_writeable — Return a bucket object from the brigade for operating on

805 |

stream_bucket_new — Create a new bucket for use on the current stream

806 |

stream_bucket_prepend — Prepend bucket to brigade

807 |

stream_context_create — 创建资源流上下文

808 |

stream_context_get_default — Retrieve the default stream context

809 |

stream_context_get_options — 获取资源流/数据包/上下文的参数

810 |

stream_context_get_params — Retrieves parameters from a context

811 |

stream_context_set_default — Set the default stream context

812 |

stream_context_set_option — 对资源流、数据包或者上下文设置参数

813 |

stream_context_set_params — Set parameters for a stream/wrapper/context

814 |

stream_copy_to_stream — Copies data from one stream to another

815 |

stream_filter_append — Attach a filter to a stream

816 |

stream_filter_prepend — Attach a filter to a stream

817 |

stream_filter_register — Register a user defined stream filter

818 |

stream_filter_remove — 从资源流里移除某个过滤器

819 |

stream_get_contents — 读取资源流到一个字符串

820 |

stream_get_filters — 获取已注册的数据流过滤器列表

821 |

stream_get_line — 从资源流里读取一行直到给定的定界符

822 |

stream_get_meta_data — 从封装协议文件指针中取得报头/元数据

823 |

stream_get_transports — 获取已注册的套接字传输协议列表

824 |

stream_get_wrappers — 获取已注册的流类型

825 |

stream_is_local — Checks if a stream is a local stream

826 |

stream_isatty — Check if a stream is a TTY

827 |

stream_notification_callback — A callback function for the notification context parameter

828 |

stream_register_wrapper — 别名 stream_wrapper_register

829 |

stream_resolve_include_path — Resolve filename against the include path

830 |

stream_set_blocking — 为资源流设置阻塞或者阻塞模式

831 |

stream_set_chunk_size — 设置资源流区块大小

832 |

stream_set_read_buffer — Set read file buffering on the given stream

833 |

stream_set_timeout — Set timeout period on a stream

834 |

stream_set_write_buffer — Sets write file buffering on the given stream

835 |

stream_socket_accept — 接受由 stream_socket_server 创建的套接字连接

836 |

stream_socket_client — Open Internet or Unix domain socket connection

837 |

stream_socket_enable_crypto — Turns encryption on/off on an already connected socket

838 |

stream_socket_get_name — 获取本地或者远程的套接字名称

839 |

stream_socket_pair — 创建一对完全一样的网络套接字连接流

840 |

stream_socket_recvfrom — Receives data from a socket, connected or not

841 |

stream_socket_sendto — Sends a message to a socket, whether it is connected or not

842 |

stream_socket_server — Create an Internet or Unix domain server socket

843 |

stream_socket_shutdown — Shutdown a full-duplex connection

844 |

stream_supports_lock — Tells whether the stream supports locking

845 |

stream_wrapper_register — 注册一个用 PHP 类实现的 URL 封装协议

846 |

stream_wrapper_restore — Restores a previously unregistered built-in wrapper

847 |

stream_wrapper_unregister — Unregister a URL wrapper

848 |

SPL


849 |

class_implements — 返回指定的类实现的所有接口。

850 |

class_parents — 返回指定类的父类。

851 |

class_uses — Return the traits used by the given class

852 |

iterator_apply — 为迭代器中每个元素调用一个用户自定义函数

853 |

iterator_count — 计算迭代器中元素的个数

854 |

iterator_to_array — 将迭代器中的元素拷贝到数组

855 |

spl_autoload_call — 尝试调用所有已注册的__autoload()函数来装载请求类

856 |

spl_autoload_extensions — 注册并返回spl_autoload函数使用的默认文件扩展名。

857 |

spl_autoload_functions — 返回所有已注册的__autoload()函数。

858 |

spl_autoload_register — 注册给定的函数作为 __autoload 的实现

859 |

spl_autoload_unregister — 注销已注册的__autoload()函数

860 |

spl_autoload — __autoload()函数的默认实现

861 |

spl_classes — 返回所有可用的SPL类

862 |

spl_object_hash — 返回指定对象的hash id

863 |

spl_object_id — Return the integer object handle for given object

864 |

BCMath


865 |

bcadd — 2个任意精度数字的加法计算

866 |

bccomp — 比较两个任意精度的数字

867 |

bcdiv — 2个任意精度的数字除法计算

868 |

bcmod — 对一个任意精度数字取模

869 |

bcmul — 2个任意精度数字乘法计算

870 |

bcpow — 任意精度数字的乘方

871 |

bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus

872 |

bcscale — 设置所有bc数学函数的默认小数点保留位数

873 |

bcsqrt — 任意精度数字的二次方根

874 |

bcsub — 2个任意精度数字的减法

875 |

杂项


876 |

connection_aborted — 检查客户端是否已经断开

877 |

connection_status — 返回连接的状态位

878 |

constant — 返回一个常量的值

879 |

define — 定义一个常量

880 |

defined — 检查某个名称的常量是否存在

881 |

die — 等同于 exit

882 |

eval — 把字符串作为PHP代码执行

883 |

exit — 输出一个消息并且退出当前脚本

884 |

get_browser — 获取浏览器具有的功能

885 |

__halt_compiler — 中断编译器的执行

886 |

highlight_file — 语法高亮一个文件

887 |

highlight_string — 字符串的语法高亮

888 |

hrtime — Get the system's high resolution time

889 |

ignore_user_abort — 设置客户端断开连接时是否中断脚本的执行

890 |

pack — 将数据打包成二进制字符串

891 |

php_check_syntax — 检查PHP的语法(并执行)指定的文件

892 |

php_strip_whitespace — 返回删除注释和空格后的PHP源码

893 |

sapi_windows_cp_conv — Convert string from one codepage to another

894 |

sapi_windows_cp_get — Get process codepage

895 |

sapi_windows_cp_is_utf8 — Indicates whether the codepage is UTF-8 compatible

896 |

sapi_windows_cp_set — Set process codepage

897 |

sapi_windows_vt100_support — Get or set VT100 support for the specified stream associated to an output buffer of a Windows console.

898 |

show_source — 别名 highlight_file

899 |

sleep — 延缓执行

900 |

sys_getloadavg — 获取系统的负载(load average)

901 |

time_nanosleep — 延缓执行若干秒和纳秒

902 |

time_sleep_until — 使脚本睡眠到指定的时间为止。

903 |

uniqid — 生成一个唯一ID

904 |

unpack — Unpack data from binary string

905 |

usleep — 以指定的微秒数延迟执行

906 |

907 |
908 |
909 | 910 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 2 | ### php 函数速查表 3 | 4 | - [https://php-dict.iddahe.com](https://php-dict.iddahe.com) 5 | 6 | > 尊重他人劳动成果,使用请著名出处。 7 | 8 | - [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) 9 | --------------------------------------------------------------------------------