Home  >  Article  >  Backend Development  >  输出函数定义

输出函数定义

WBOY
WBOYOriginal
2016-06-23 13:57:591364browse

如果知道某个函数名,在不能看源代码的情况下如何知道函数内容是什么?


回复讨论(解决方案)

你只可以通过的的反应来推测

这个就类似于猜化学成分,然后再去试验,验证猜想.
先猜内容,估计得出的结果.再测试.看看结果是不是和猜想的一样.

只能靠猜

应该是没办法,靠猜难免会有疏漏

PHP 有自带的反射机制,包括类,函数都有对应的类,你去看看手册有点多 

array_rand rand
array_merge merge ……
慢慢联想

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