1 diff.inc | Diff::__construct($from_lines, $to_lines) |
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.:
File
- core/
includes/ diff.inc, line 645 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
- Diff
- Class representing a 'diff' between two sequences of strings.
Code
function __construct($from_lines, $to_lines) {
$eng = new DiffEngine;
$this->edits = $eng->diff($from_lines, $to_lines);
}