PHP new line \n and \r\n not working

后端 未结 3 564
南方客
南方客 2021-01-11 17:18
  $rows = mysql_num_rows($result) ;
  for ($j=0 ; $j < 3 ; $j++) {
  for ($i=0 ; $i < 3 ; $i++) {
    $row = mysql_fetch_array($result) ;
    echo \'

        
3条回答
  •  不要未来只要你来
    2021-01-11 18:08

    Whitespace is not displayed verbatim when it's part of HTML text. \r and \n are not universal constants; they are just characters, and it's up to whatever program consumes them to decide what to do with them.

    You should use
    instead.

提交回复
热议问题