Highlight the difference between two strings in PHP -


what easiest way highlight difference between 2 strings in php?

i'm thinking along lines of stack overflow edit history page, new text in green , removed text in red. if there pre-written functions or classes available, ideal.

you can use php horde_text_diff package. suits needs, , quite customisable well.

it's licensed under gpl, enjoy!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -