PHP-FineDiff
PHP-FineDiff copied to clipboard
Add __toString() method.
Currently, it takes a bit of digging to find the correct functions to use, and the following code causes an error:
<?php
$diff = new FineDiff($from, $to);
echo $diff;
?>
However, adding the magic __toString()
method makes this return the HTML diff (as I, using it for the first time, assumed would occur).