Skip to content
Advertisement

Tag: readable

How to display a readable array – Laravel

After I write: And after I refresh the browser I get an unreadable array. Is there a way to get that array in a readable format? Answer dd() dumps the variable and ends the execution of the script (1), so surrounding it with <pre> tags will leave it broken. Just use good ol’ var_dump() (or print_r() if you know it’s

Advertisement