Code: Select all
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 7 )Code: Select all
Array (
[0] => 1
[1] => 2
[2] => 3
[3] => 7
)can i setup my conf somwhere so i have a similar result?
Moderator: General Moderators
Code: Select all
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 7 )Code: Select all
Array (
[0] => 1
[1] => 2
[2] => 3
[3] => 7
)Code: Select all
echo '<pre>';
print_r($arrName);
echo '</pre>';
Code: Select all
echo nl2br(print_r($arrName, TRUE));
Code: Select all
function dump($value, $label='') {
echo $label . '<pre>' . print_r($value, 1) . '</pre>';
}Actually, if you view source, it is outputting the latter. Your browser is the one mangling the output to look like the first one.pedrotuga wrote:my print_r() output somtehing like this:
in the manual, and in code i see here and there it usually gives this:Code: Select all
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 7 )
which is far so much easyer to read....Code: Select all
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 7 )
can i setup my conf somwhere so i have a similar result?