Php.net recently updated the PHP documentation, the more useful is the new Pman tool. Pman is a command-line gadget that facilitates viewing the local Help documentation for PHP functions, but does not contain php.net comment data. The simple trial experience is as follows:
Install Pman
Use the legendary pear to install the Pman
sudo pear install Doc.php.net/pman |
If the pear version is older, you need to upgrade pear before you can continue
How to use Pman
The use of Pman is a fool, for example, we want to view the Help information for strlen:
The content of the help text is colored and comparable to the CHM version of the PHP help document. Pman's detailed use Help is as follows
#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 the pages for printing W:print Location of man page (s) that would is displayed (If no Name given:print directories that would is 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) |
Another advantage is that it's more convenient to look at the PHP help in Vim, combined with the perfect