Where is the source code for built-in php functions located? [closed]

前提是你 提交于 2019-12-03 07:20:29

问题


I have a local server installed on my Mac (MAMP). Where I can find the PHP functions in my computer?

What is the path to the functions folder? For instance, rand(), time(), isset(), explode().

I would like to see the code to learn from it.


回答1:


You can download the PHP source from this page: http://php.net/downloads.php Download and extract the archives. The standard functions are located under ext/standard.

Or simply browse them on github: https://github.com/php/php-src/tree/master/ext/standard



来源:https://stackoverflow.com/questions/10859420/where-is-the-source-code-for-built-in-php-functions-located

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!