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.
精彩评论