Jump to content

Version Compare


The Little Guy

Recommended Posts

The best way would be to outsource the problem to something like Unix's diff (which undoubtedly has ports for other operating systems). Create two temporary files (if they aren't files already), run them through diff, and parse the output.

 

If you need to do it yourself then you should get familiar with the longest common subsequence algorithm.

Link to comment
https://forums.phpfreaks.com/topic/242474-version-compare/#findComment-1245347
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.