Copy code The code is as follows:
//Output:
aaaa,bbbb,cccc,dddd,eeee,ffff,gggg,hhhh,iiii,jjjj,kk kk,ll ll
//file.php content:
aaaa
cccc
dddd
eeee
ffff
gggg
hhhh
iiii
jjjj
kk kk
ll ll
//file.php replace space (x), Tab (T) effect
aaaa
TTTT
cccc
ddddT
xxxxxxxxxxxT
eeeexxxxxxxxxx
ffff
gggg
hhhhxxxxxxxx
xxxxxxxxiiii
xxxxxxxxjjjjxxxxxxx
kkxxxkkTT
xxxxllxxllTT
Txxxxxxxxxx
TTTxx
http://www.bkjia.com/PHPjc/325785.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/325785.htmlTechArticleCopy the code as follows: ?php /* *Read the file content into a string, and remove newlines and lines at the same time Trailing space on first line. */ header("Content-type: text/html; charset=utf-8"); echo preg_re...