php文档更新介绍

yipeiwu_com5年前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算法实例分享

只打印0   具体个数由输入的参数n决定   如n=5就打印00000 <?php $n = $_GET['n']; for ($i=0; $i < $n...

php中根据某年第几天计算出日期年月日的代码

这个索引值除了方便面数据的记录和搜索,还起着记录日期资讯的作用,信息量很可观。 那么,如何还原索引值为可用的日期资讯呢? date('z')返回的是一年中的第几天,返回值为从0开始至36...

PHP similar_text 字符串的相似性比较函数

PHP 提供了一个极少使用的 similar_text 函数,但此函数非常有用,用于比较两个字符串并返回相似程度的百分比,以下是similar_text () 函数的使用方法: 复制代码...

php使用codebase生成随机数

有25幅作品拿去投票,一次投票需要选16幅,单个作品一次投票只能选择一次。前面有个程序员捅了漏子,忘了把投票入库,有200个用户产生的投票序列为空。那么你会如何填补这个漏子? 当然向上级...

使用PHP访问RabbitMQ消息队列的方法示例

本文实例讲述了使用PHP访问RabbitMQ消息队列的方法。分享给大家供大家参考,具体如下: 扩展安装 PHP访问RabbitMQ实际使用的是AMQP协议,所以我们只要安装epel库中的...