How can I print an array so instead of being all a single line such as:
Array ( [0] => Array ( [Palabra] => correr [Tipo] => Verbo ) [1] => Array ( [Palabra] => es [Tipo] => Verbo [PersonaSujeto] => tercera [CantidadSujeto] => singular [Tiempo] => presente )
It displays something more readable like this or similar:
Array (
[0] => Array (
[Palabra] => correr
[1] => Array (
[Tipo] => Verbo
[Tiempo] => Infinitivo) )
[1] => Array (
[Palabra] => es
[Tipo] => Verbo
[PersonaSujeto] => tercera
[CantidadSujeto] => singular
[Tiempo] => presente )
It is printed out with a line break, but in HTML line breaks are meaningless. You can do one of 2 things:
Tell the browser it’s not an HTML document, but a text, by placing the following code before any output is sent:
Simply have
<pre>tags around the printed array: