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