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.
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.
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