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.
Try `PHP_EOL` constant when executing script in terminal. For web browsers `<br />` should be used