4
You are probably viewing through the browser.
Brower renders HTML. The output of var_dump()
returns in plain text.
In plain text, the line break is r or n. The browser does not render line break.
To have the friendliest look with line breaks, do this:
echo '<pre>';
var_dump($a_sua_variavel_aqui);
echo '</pre>';
This will cause the content to be displayed in text format.
Another way is to do nothing. Simply open the source code of the page. In Chrome, press CTRL+U.
Try to use:
echo '<pre>'; var_dump($variavel); echo '</pre>';
– Inkeliz