Question: Using PHP 5.6.2 on MAMP PRO and trying to echo this string of characters: 

```
echo " \" \n \r \t \\ \$ ";

```

The output that I get is: 

```
" \ $

```

So escape sequences such as \n \t \r are neglected. I don't know if there's something wrong with php.ini because it has been working fine before. 

I would really appreciate if anyone could help me to fix this.

Answer: 
In browser

```
echo "<pre> \" \n \r \t \\ \$ </pre>";

```

In terminal

```
echo " \" \n \r \t \\ \$ ";

```

---

pre
---

The HTML Element (or HTML Preformatted Text) represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed.
Use single quotes for echo statement and double for \t or \n.

Something like that:

```
echo 'Your text' . "\t" .
     'Your text' . "\n" .
     'Your text at next line';

```