How can I count the total number of built-in functions in PHP, latest version?
-
2Define "built-in". Do you mean in the core engine, or also in the common extensions? If so, what extensions?– Joeri SebrechtsFeb 11, 2010 at 10:37
-
this is like a game-show question where you have to guess what something costs.– Hassan SyedFeb 11, 2010 at 10:39
-
1that would be a cool game show. I take "Multi-threaded Fun" for 200.– ThiloFeb 11, 2010 at 10:50
-
2I'd be more interested in the total number of accepted questions by coderex– GordonFeb 11, 2010 at 10:54
5 Answers
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']);
-
7
-
1
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...
-
5+1 Ahh yes, the Rainman approach. Functions .. toothpicks, cards, what's the difference? :)– Tim PostFeb 11, 2010 at 10:39
-
7
-
1
-
5
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.
-
-
The link is dead, and this answer has been provided before. Dec 1, 2015 at 19:18