What Are Escaping Characters?
The “ \
” backslash character can be used to escape characters.
\n
outputs content to the next new line.
\r
makes a return
\t
makes a tab
\’
outputs a single quotation mark.
\”
outputs a double quotation mark.
Example 55:
<?php
echo “PHP said \”
Hello World\”
”;
//
\”
outputs a double quotation mark
.
?>
Output:
PHP said “
Hello World”
Explanation:
\”
outputs a double quotation mark.