Complete the code to print a new line using an escape sequence.
<?php echo "Hello[1]World!"; ?>
The escape sequence \n creates a new line in the output.
Complete the code to include a tab space between words.
<?php echo "Hello[1]World!"; ?>
The escape sequence \t adds a horizontal tab space between words.
Fix the error in the code to correctly print a backslash character.
<?php echo "This is a backslash: [1]"; ?>
To print a single backslash, you need to escape it with another backslash: \\.
Fill both blanks to print a double quote inside a string.
<?php echo "She said: [1]Hello[2]"; ?>
To print double quotes inside a double-quoted string, use the escape sequence \".
Fill all three blanks to print a path with backslashes and a new line.
<?php echo "C:[1]Users[2]Documents[3]"; ?>
Backslashes in paths must be escaped as \\. To add a new line, use \n.
