略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 函数和方法列表

2024-12-22

函数和方法列表

手册中所有函数和方法的列表

a b c d e f g h i j k l m n o p q r s t u v w x y z _ å

add a noteadd a note

User Contributed Notes 8 notes

up
19
crabovwik at yandex dot ru
3 years ago
Today 07-01-2019 [dd.mm.yyyy]

10934 functions in this list 🍺
up
5
valbou26 at hotmail dot com
4 years ago
Today : 2018-04-13
10641 functions in this list !

Keep growing ;)
up
2
tudorsfatosu at yahoo dot dot com
3 years ago
A new update regarding the number of entries in the list. We are currently at 11033 entries, in June 2019
up
4
counter at county dot co
7 years ago
In case anyone was wondering, the total function/method count in this list as of this date is exactly 9457
up
3
DIA
6 years ago
Total number of functions listed above: 9450.
(04/14/2016 [mm/dd/yyyy])
up
2
Geordy James
5 years ago
In case anybody wondering as of 21/04/2017 [dd/mm/yyyy] there are exactly 9957 Functions listed above.
up
2
M.A.Y
6 years ago
Total number of php functions/methods listed above are 9634.
Today's date is 1/1/2016. (mm/dd/yy)
up
-14
php at vanviegen dot net
5 years ago
Here's a little script that scrapes all PHP function names from this page, and outputs a prefix-compressed Perl Compatible Regular Expression matching them. Useful for syntax highlighting.

<?php

$html
= file_get_contents('http://php.net/manual/en/indexes.functions.php');

preg_match_all('/<li><a href="function.[^>]*>([a-zA-Z0-9_]*)<\/a>/', $html, $matches);
$funcs = $matches[1];

print
'\b(?:';
$prefixes = [''];

foreach(
$funcs as $i => $func) {
    while(
substr($func, 0, strlen($prefixes[0])) !== $prefixes[0]) {
        print
")";
       
array_shift($prefixes);
    }
    if (
$i) print '|';

    while(
true) {
       
$common = $func;
        for(
$j = $i+1; $j < count($funcs); $j++) {
           
$lookAhead = $funcs[$j];
           
$maxLen = min(strlen($lookAhead), strlen($func));
            for(
$ch = 0; $ch < $maxLen; $ch++) {
                if (
$lookAhead[$ch] !== $func[$ch]) break;
            }
           
$newCommon = substr($common, 0, $ch);
            if (
strlen($newCommon) < strlen($prefixes[0])+2) break;
           
$common = $newCommon;
        }
        if (
$j < $i+4) break; // at least 4 functions with a common prefix of at least 2 chars
       
print substr($common, strlen($prefixes[0])) . "(?:";
       
array_unshift($prefixes, $common);
    }
   
    print
substr($func, strlen($prefixes[0]));
}

print
')\b';

官方地址:https://www.php.net/manual/en/indexes.functions.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3