diff between arrays
Posted: Thu Sep 25, 2003 4:06 am
Hello all,
I want to make a diff output between arrays. I know array_diff and array_diff_assoc but I need to tweak them a little and I'm not sure how.
For every line in the base array that is different from the other array I need to output
base line => bla bla bla
other line => bla blo bla
With the actual difference hilighted i.e. the word 'blo'
any ideas on how to achieve that?
Thax
I want to make a diff output between arrays. I know array_diff and array_diff_assoc but I need to tweak them a little and I'm not sure how.
For every line in the base array that is different from the other array I need to output
base line => bla bla bla
other line => bla blo bla
With the actual difference hilighted i.e. the word 'blo'
any ideas on how to achieve that?
Thax