开发者

How can I count the total number of built-in functions in PHP? [closed]

开发者 https://www.devze.com 2022-12-19 17:23 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. 开发者_StackOverflow Closed 10 years ago.

How can I count the total number of built-in functions in PHP, latest version?


You could use a core function to count the number of functions available in the core and installed extensions:

$funcs = get_defined_functions();
echo count($funcs['internal']);


Count them here:

PHP Function List

Here is a list of all the documented PHP functions. Click on any one of them to jump to that page in the manual...


There are 5845 listed function here at PHP website


PHP site shows a total of 5368 functions.


http://php.net/quickref.php

I selected all the functions listed on that page and pasted into a text editor.. i got 5011 lines which means that there are 5011 functions, if i am not wrong.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号