diff between arrays

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yaron
Forum Contributor
Posts: 157
Joined: Fri Aug 22, 2003 8:40 am

diff between arrays

Post by yaron »

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
Post Reply