Home  >  Article  >  Backend Development  >  PHP中的函数在哪里会看到 想研究一下函数的底层实现?

PHP中的函数在哪里会看到 想研究一下函数的底层实现?

WBOY
WBOYOriginal
2016-06-13 12:17:52870browse

PHP中的函数在哪里能看到 想研究一下函数的底层实现????
百度了  都没有     只有函数的用法!
------解决思路----------------------
看源码去呀!
------解决思路----------------------
那你在哪里下载 php 的?

www.php.net 这是 php 的官网
------解决思路----------------------
http://php.net/downloads.php
------解决思路----------------------
去官网上下载PHP的源码包,然后配置个Ctags啥的。就可以慢慢看了。
其中一些函数,实际上是宏定义。
而大多数的PHP函数,都是通过PHP_FUNCTION(function_name)这样实现的。
源码目录中, ext目录包含了PHP的大多数扩展的函数定义。例如数组的一些操作是在标准扩展standard中,也就是ext/standard/array.c中实现的,字符串的相关函数是在ext/standard/string.c中实现的。
自己慢慢看吧。
------解决思路----------------------
http://cn.php.net/manual/en/internals2.php

https://github.com/walu/phpbook/blob/master/index.md
------解决思路----------------------
我觉得既然选择了php语言,就没必要过多研究底层,可能往框架或者网络架构那边发展更合适一些
------解决思路----------------------

引用:
Quote: 引用:

http://php.net/downloads.php
:看什么样能提高自己的编程能力  学PHP一年多了,只能应用它提供的函数,如何才能更深入的了解啊


如果是一年经验,还是先不要看源码好。先看看框架的实现吧。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn