What are \r and \n meaning in PHP?

后端 未结 7 2080
难免孤独
难免孤独 2020-12-10 03:20

what are these called \\r \\n and is there a tutorial that explains them?

7条回答
  •  天命终不由人
    2020-12-10 04:01

    They're escape sequences. \n is a newline and \r is a carriage return.

    In Windows most text editors have a newline as \r\n and on unix it's \n

提交回复
热议问题