array difference - PHP array_diff output -
i using array_diff correctly compare 2 arrays.
in documentation, says output this:
array ( [1] => blue )
as can see, each output come in single line.
but when try it, shows me output in 1 line.
maybe can little friendly, because have 4 rows compare, i'm supposed have, in future, hundreds of them.
how solve this?
you can "pretty print" array:
echo "<pre>"; print_r($myarray); echo "</pre>";
Comments
Post a Comment