php文档更新介绍

yipeiwu_com6年前PHP代码库
简单的试用心得如下:
  安装pman
  使用传说中的pear来安装pman
  sudo pear install doc.php.net/pman

  如果pear版本比较老,需要先升级pear才可以继续

  sudo pear upgrade pear

  pman使用方法
  pman的使用方法很傻瓜,比如我们想查看strlen的帮助信息:

  pman strlen

  帮助文本的内容是彩色的,能和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帮助信息更方便了,结合完美

  :!pman strlen

相关文章

PHP创建/删除/复制文件夹、文件

学习了PHP的文件编程,其中PHP自身提供了复制文件的函数(copy)。自己也写了一个功能差不多的复制图片的函数,以此在这里记录一下。 在说该函数之前,先介绍一下使用PHP创建/删除文件...

shopex主机报错误请求解决方案(No such file or directory)

一、shopex主机环境 1、windows 2003 R2 2、iis6.0+php5.0以上 3、mysql5.0以上 如果有希望了解php环境搭配的,请查阅: windows200...

改写函数实现PHP二维/三维数组转字符串

由于工作需要,自己在手册给定的示例函数基础上改写出了这样一个函数,代码如下: 复制代码 代码如下: //将多维数组中所有的数值转换成字符串————》最多支持三维数组 function i...

PHP中$_SERVER的详细参数与说明介绍

$_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。 $_SERVER['argv'] #传递给该脚本的参数。 $_SERVER['...

php生成0~1随机小数的方法(必看)

Javascript生成0~1随机小数的方法可以调用自带的Math.random(); 例如: <script type="text/javascript"> docum...