php文档更新_PHP教程
php.net最近更新了php文檔,比較有用的是新增的pman工具。pman是一個(gè)命令行小工具,方便查看php函數(shù)的本地幫助文檔,但是不包含php.net的評(píng)論數(shù)據(jù)。簡單的試用心得如下:
安裝pman
使用傳說中的pear來安裝pman
sudo pear install doc.php.net/pman
|
如果pear版本比較老,需要先升級(jí)pear才可以繼續(xù)
sudo pear upgrade pear
|
pman使用方法
pman的使用方法很傻瓜,比如我們想查看strlen的幫助信息:
pman strlen
|
幫助文本的內(nèi)容是彩色的,能和chm版本的php幫助文檔媲美。pman的詳細(xì)使用幫助如下
#pman --help man, version 1.6c usage: man [-adfhktwW] [section] [-M path] [-P pager] [-S list] [-m system] [-p string] name ... a : find all matching entries c : do not use cat file d : print gobs of debugging information D : as for -d, but also display the pages f : same as whatis(1) h : print this help message k : same as apropos(1) K : search for a string in all pages t : use troff to format pages for printing w : print location of man page(s) that would be displayed (if no name given: print directories that would be searched) W : as for -w, but display filenames only C file : use `file as configuration file M path : set search path for manual pages to `path P pager : use program `pager to display pages S list : colon separated section list m system : search for alternate systems man pages p string : string tells which preprocessors to run e - [n]eqn(1) p - pic(1) t - tbl(1) g - grap(1) r - refer(1) v - vgrind(1)
|
還有一個(gè)好處是在vim里查看php幫助信息更方便了,結(jié)合完美
:!pman strlen
|
http://www.bkjia.com/PHPjc/478756.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478756.htmlTechArticlephp.net最近更新了php文檔,比較有用的是新增的pman工具。pman是一個(gè)命令行小工具,方便查看php函數(shù)的本地幫助文檔,但是不包含php.net的評(píng)論...
總結(jié)
以上是生活随笔為你收集整理的php文档更新_PHP教程的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果没有调查墙壁吗(苹果官网报价)
- 下一篇: 第五人格段位名称有哪些