对于初学者,我想指出,这是我在Stackoverflow上的第一篇文章。但是,在我的网站开发生涯中,我曾多次使用过这个网站。现在我觉得除了浏览谷歌之外我还需要一些帮助。
所以我的问题是PHP是否有像http://visualjquery.com/一样的可视化文档?
因为如果不是我已经在考虑为自己写作了。那么有人知道它是否真的在网上的某个地方?
我确信编写自己的可视化PHP会让我更好地了解php,但是我知道车轮已经被其他人发明了,我会不那么急切了?
所以,如果有人知道请告诉你..非常感谢你。
答案 0 :(得分:4)
不是我知道的。
官方文档位于http://www.php.net/manual/en/。 有一个搜索选项quick references和various shortcuts available,但它没有像visualjquery.com这样的深入搜索
SPL, there is the helly pages in addition to the Manual pages
答案 1 :(得分:2)
看起来你只想要一个与普通文档不同的界面。
在线PHP手册以及其他几个使用PHP-based Docbook renderer构建,可以扩展(通过其他包和格式)以提供您想要的任何类型的输出:包括一个像花哨的Visual Jquery一样。 / p>
或者,您可以采用现有的输出格式(例如,PhD可以呈现XML / JSON / PHP)并在顶部添加一个简单的可视UI。例如,file()
函数的JSON输出是
{
"name": "file",
"purpose": "Reads entire file into an array",
"manualid": "function.file",
"version": "PHP 4, PHP 5",
"params": [
{
"name": "filename",
"type": "string",
"optional": "false"
},
{
"name": "flags",
"type": "int",
"optional": "true"
},
{
"name": "context",
"type": "resource",
"optional": "true"
}
],
"return": {
"type": "array",
"description": "Returns the file in an array. Each element of the array corresponds to a\n line in the file, with the newline still attached. Upon failure,\n file returns FALSE.Each line in the resulting array will include the line ending, unless\n FILE_IGNORE_NEW_LINES is used, so you still need to\n use rtrim if you do not want the line ending\n present.If PHP is not properly recognizing\nthe line endings when reading files either on or created by a Macintosh\ncomputer, enabling the\nauto_detect_line_endings\nrun-time configuration option may help resolve the problem."
},
"errors": null,
"notes": [
{
"type": "warning",
"description": "When using SSL, Microsoft IIS\nwill violate the protocol by closing the connection without sending a\nclose_notify indicator. PHP will report this as \"SSL: Fatal\nProtocol Error\" when you reach the end of the data. To work around this, the\nvalue of error_reporting should be\nlowered to a level that does not include warnings.\nPHP 4.3.7 and higher can detect buggy IIS server software when you open\nthe stream using the https:\/\/ wrapper and will suppress the\nwarning. When using fsockopen to create an\nssl:\/\/ socket, the developer is responsible for detecting\nand suppressing this warning."
}
],
"changelog": [
{
"version": "5.0.0",
"change": "The context parameter was added"
},
{
"version": "5.0.0",
"change": "Prior to PHP 5.0.0 the flags parameter only\n covered include_path and was\n enabled with 1"
},
{
"version": "4.3.0",
"change": "file became binary safe"
}
],
"seealso": [
{
"type": "function",
"name": "readfile"
},
{
"type": "function",
"name": "fopen"
},
{
"type": "function",
"name": "fsockopen"
},
{
"type": "function",
"name": "popen"
},
{
"type": "function",
"name": "file_get_contents"
},
{
"type": "function",
"name": "include"
},
{
"type": "function",
"name": "stream_context_create"
}
]
}
答案 2 :(得分:1)
没有像这样的可视化文档(据我所知),但有一个很常用的参考文献:php.net's manual。
因为它如此完整,所以不需要许多其他参考。
顺便说一句,在php.net上搜索特定的功能非常容易。只需浏览http://php.net/[insert function name here]
,它就会将您重定向到您想要的页面。