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簡(jiǎn)單瀏覽目錄內(nèi)容的實(shí)現(xiàn)代碼
本篇文章是對(duì)php簡(jiǎn)單瀏覽目錄內(nèi)容的實(shí)現(xiàn)代碼進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-06-06
php可變長(zhǎng)參數(shù)處理函數(shù)詳解
這篇文章主要介紹了php可變長(zhǎng)參數(shù)處理函數(shù),結(jié)合實(shí)例形式分析了func_num_args()、func_get_arg()及func_get_args()三個(gè)可變長(zhǎng)參數(shù)處理函數(shù)功能及使用方法,需要的朋友可以參考下2017-02-02
php中explode的負(fù)數(shù)limit用法分析
這篇文章主要介紹了php中explode的負(fù)數(shù)limit用法,實(shí)例分析explode中l(wèi)imit參數(shù)為負(fù)的用法,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-02-02
phpmyadmin顯示utf8_general_ci中文亂碼的問(wèn)題終級(jí)篇
自己寫(xiě)PHP也有一年多了,然后編碼問(wèn)題卻老是沒(méi)有得到好的解決,自己的情況是這樣的,網(wǎng)頁(yè)顯示完全正常,在phpmyadmin數(shù)據(jù)庫(kù)顯示中文亂碼,不管是簡(jiǎn)體還是繁體,只要是中文都是亂碼2013-04-04

