开发者

PHP source code for inbuilt functions

Is P开发者_JAVA百科HP written in C ? Where can i find the PHP source code online without having to download all of it ?


PHP functions are written in C - you can find the browsable source code at lxr.php.net.

For example: http://lxr.php.net/opengrok/xref/PHP_5_3/ext/standard/array.c#1242

PS: Usually you can find function definitions just by typing the function name in the search. With commonly used function like in_array you will get loads of other results though. In this case just search for "PHP_FUNCTION in_array" (with quotes).


ALL in-built functions in PHP are written in C - the source language for PHP. All the PHP source is freely available. Just choose a "source" package when you're downloading from PHP.net.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜