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.

enter image description here

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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -