PHP中“返回由指定数目的空格组成的字符串”的函数是什么?

1、str_pad(string,length,pad_string,pad_type)  
  eg:[echo   str_pad("Hello   World",20,".");]  
  The   output   of   the   code   above   will   be:[Hello   World.........]  
   
  2、str_repeat(string,repeat)  
  eg:[echo   str_repeat(".",13);]  
  The   output   of   the   code   above   will   be:[.............]

posted on 2009-02-05 20:37  费戈  阅读(289)  评论(0编辑  收藏  举报

导航