Jump to content

Highlight changes


EchoFool

Recommended Posts

Hey,

 

Say i had two strings assigned to different variables like

$var = 'Hello there, how are you ?';
$var2 = 'Hello there, how are you today?';

 

I want to get a function automatically highlight whats different between the two by - say for example highlighting the added words in a red font.

 

So like the result would show (after comparison)

 

Hello there, how are you today?

 

Is there a built in function for such a thing or is this a make your own function moment?

Link to comment
https://forums.phpfreaks.com/topic/205009-highlight-changes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.