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

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -

javascript - three.js lot of meshes optimization -