Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

function

php

mamp

I have a local server installed on my Mac (MAMP). Where can I find the PHP functions on 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.

like image 481
Bona Chon Avatar asked Jun 02 '12 02:06

Bona Chon


1 Answers

You can download the PHP source from the 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

like image 50
scaraveos Avatar answered Oct 06 '22 14:10

scaraveos