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:[.............]
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:[.............]