php文檔更新介紹
更新時(shí)間:2011年07月22日 23:30:01 作者:
php.net最近更新了php文檔,比較有用的是新增的pman工具。pman是一個(gè)命令行小工具,方便查看php函數(shù)的本地幫助文檔,但是不包含php.net的評(píng)論數(shù)據(jù)。
簡(jiǎn)單的試用心得如下:
安裝pman
使用傳說(shuō)中的pear來(lái)安裝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 system's 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
安裝pman
使用傳說(shuō)中的pear來(lái)安裝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 system's 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
相關(guān)文章
php使用socket調(diào)用http和smtp協(xié)議實(shí)例小結(jié)
這篇文章主要介紹了php使用socket調(diào)用http和smtp協(xié)議,結(jié)合實(shí)例形式總結(jié)分析了php使用socket發(fā)送http請(qǐng)求、post請(qǐng)求、SMTP請(qǐng)求、郵件發(fā)送等相關(guān)操作技巧,需要的朋友可以參考下2019-07-07微信公眾平臺(tái)開(kāi)發(fā)教程④ ThinkPHP框架下微信支付功能圖文詳解
這篇文章主要介紹了微信公眾平臺(tái)開(kāi)發(fā)ThinkPHP框架下微信支付功能,結(jié)合圖文形式詳細(xì)分析了基于thinkPHP框架的微信支付功能實(shí)現(xiàn)步驟、操作技巧與相關(guān)注意事項(xiàng),需要的朋友可以參考下2019-04-04php通過(guò)分類列表產(chǎn)生分類樹數(shù)組的方法
這篇文章主要介紹了php通過(guò)分類列表產(chǎn)生分類樹數(shù)組的方法,涉及php操作數(shù)組與分類節(jié)點(diǎn)的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-04-04php從數(shù)據(jù)庫(kù)查詢結(jié)果生成樹形列表的方法
這篇文章主要介紹了php從數(shù)據(jù)庫(kù)查詢結(jié)果生成樹形列表的方法,涉及php操作html元素生成樹形列表的技巧,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2015-04-04使用apache模塊rewrite_module (轉(zhuǎn))
使用apache模塊rewrite_module (轉(zhuǎn))...2007-02-02