Find the differences between two texts. Simplifies the problem by
stripping any common prefix or suffix off the texts before diffing.
public main ( string $text1, string $text2, boolean $checklines = true, integer $deadline = null ) : self | ||
$text1 | string | Old string to be diffed. |
$text2 | string | New string to be diffed. |
$checklines | boolean | Optional speedup flag. If present and false, then don't run a line-level diff first to identify the changed areas. Defaults to true, which does a faster, slightly less optimal diff. |
$deadline | integer | Optional time when the diff should be complete by. Used internally for recursive calls. Users should set $this->timeout instead. |
Результат | self |