Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If the string is enclosed in double-quotes ("), PHP understands more escape sequences for special characters:
Table 11-1. Escaped characters
sequence meaning
\n linefeed (LF or 0x0A (10) in ASCII)
\r carriage return (CR or 0x0D (13) in ASCII)
\t horizontal tab (HT or 0x09 (9) in ASCII)
\\ backslash
\$ dollar sign
\" double-quote
\[0-7]{1,3} the sequence of characters matching the regular expression is a character in octal notation
\x[0-9A-Fa-f]{1,2} the sequence of characters matching the regular expression is a character in hexadecimal notation
$ascii = str_replace("/", "111", $ascii);
$ascii = str_replace("\\", "222", $ascii);
$ascii = str_replace("111", "/", $ascii);
$ascii = str_replace("222", "\\", $ascii);
$ascii = stripslashes($ascii);
$ascii = nl2br($ascii);
$line_count = substr_count($ascii, "<br />");
$pieces = explode("<br />", $ascii);
for($i=0; $i <= $line_count; $i++) {
echo strrev($pieces[$i]) . "<br>";
}