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函数ip2long转换IP时数值太大产生负数的解决方法

【造成原因】:Because PHP's integer type is signed, and many IP addresses will result in negative in...

PHP实现的memcache环形队列类实例

本文实例讲述了PHP实现的memcache环形队列类。分享给大家供大家参考。具体如下: 这里介绍了PHP实现的memcache环形队列类。没咋学过数据结构,因为业务需要,所以只是硬着头皮...

php如何控制用户对图片的访问 PHP禁止图片盗链

把images目录设置成不充许http访问(把图片目录的:读取、目录浏览 两个权限去掉)。 用一个PHP文件,直接用file函数读取这个图片。在这个PHP文件里进行权限控制。 apach...

php有道翻译api调用方法实例

本文实例讲述了php有道翻译api调用方法,这里我们利用了file_get_contents函数直接读取由api返回的数据进行处理,分享给大家供大家参考。具体分析如下: 调用之前我们需申...

7种php基本排序实现方法

本文总结了一下常用的7种排序方法,并用php语言实现。 1、直接插入排序 /* * 直接插入排序,插入排序的思想是:当前插入位置之前的元素有序, * 若插入当前位置的元素比...