fork download
  1. <?php
  2. $msg = "PHP with escape sequences";
  3. echo $msg . "\n";
  4. ?>
  5. <html><head><title>Escape Sequences</title></head>
  6. <body>
  7. <pre>
  8. <?php
  9. print "\t\tTwo tabs are \\t\\t, and two newlines are \\n\\n.\n\n";
  10. print "\tThe escaped octal numbers repesent ASCII \101\102\103.\n";
  11. print "\tThe escaped hexadecimal numbers represent ASCII \x25\x26.\n";
  12. print '\tWith single quotes, backslash sequences are not interpreted.\n';
  13. ?>
  14. </pre>
  15. </body></html>
Success #stdin #stdout 0.03s 25656KB
stdin
1
2
10
42
11
stdout
PHP with escape sequences
<html><head><title>Escape Sequences</title></head>
<body>
<pre>
		Two tabs are \t\t, and two newlines are \n\n.

	The escaped octal numbers repesent ASCII ABC.
	The escaped hexadecimal numbers represent ASCII %&.
\tWith single quotes, backslash sequences are not interpreted.\n</pre>
</body></html>