Hello everyone, my php is returning var_dump
this way what can it be?
I use xampp in ubuntu.
Who can help thank you very much.
You are probably viewing 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 breaks.
For the most user-friendly look with line breaks, do this:
echo '<pre>';
var_dump($a_sua_variavel_aqui);
echo '</pre>';
This will make the content appear in text format.
Another way is to do nothing. Simply open the source code of the page. In Chrome, press CTRL + U.