print_r() Showing in 1 line
Posted: Wed Jan 10, 2007 1:06 pm
I am Using php 5
and Using print_r() But Its Is Showing the results in 1 line
The above code make output
But it should output like this ( according to manual )
How can I solve It ??
and Using print_r() But Its Is Showing the results in 1 line
Code: Select all
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>Code: Select all
Array ( [a] => apple [b] => banana [c] => Array ( [0] => x [1] => y [2] => z ) )Code: Select all
Array
(
[a] => apple
[b] => banana
[c] => Array
(
[0] => x
[1] => y
[2] => z
)
)