function Diff::__construct in Diff 7.3
Constructor. Computes diff between sequences of strings.
Parameters
$from_lines array An array of strings.: (Typically these are lines from a file.)
$to_lines array An array of strings.:
1 call to Diff::__construct()
- MappedDiff::__construct in ./
DiffEngine.php - Constructor.
1 method overrides Diff::__construct()
- MappedDiff::__construct in ./
DiffEngine.php - Constructor.
File
- ./
DiffEngine.php, line 587 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
- Diff
- Class representing a 'diff' between two sequences of strings. @todo document @private @subpackage DifferenceEngine
Code
function __construct($from_lines, $to_lines) {
$eng = new _DiffEngine();
$this->edits = $eng
->diff($from_lines, $to_lines);
//$this->_check($from_lines, $to_lines);
}