I’m using print_r for an array but it’s not printing it in a “human readable” way in the browser. It’s just printing as if I echoed:
Array ( [0] => Array ( [uid1] => 012345 [uid2] => 012345 ) [1] => Array ( [uid1] => 012345 [uid2] => 622279 ) [2] => 012345 ( [uid1] => 012345 [uid2] => 012345 ) [3] => Array ( [uid1] => 012345 [uid2] => 012345 )
etc.
What’s causing this?
If you’re outputting it to the browser, do this:
The tabulations and carriage returns are not rendered as such in HTML, unless inside a
<pre>block.