Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the meanig and use of \n\t\t\t\t\ in php

Tags:

html

php

Can any one please tell me that what is the meaning and use of : n\t\t\t\t\n\t\t\t in the following response from and dwr service.

\r\n\t\t\t                    \r\n\t\t\t                    \t\r\n\t\t\t                    \r\n\t\t\t                \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t                    \r\n\t\t\t                    \r\n\t\t\t                    \t\r\n\t\t\t                    \r\n\t\t\t                \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t                    

Above is a sample it also includes html according to design of the page. I really don't understand whats the sense of these.

like image 871
Zubarik Avatar asked Dec 11 '22 22:12

Zubarik


2 Answers

They're escape sequences. \r represents the carriage return, \n represents the newline (linefeed) and \t represents the tab.

like image 139
Brian Cain Avatar answered Dec 28 '22 01:12

Brian Cain


\r\n is a newline and \t is a tab.

like image 39
inhan Avatar answered Dec 28 '22 02:12

inhan