Text_Diff::getFinal

Advertisement

Summery Summery

Gets the final set of lines.

Syntax Syntax

Text_Diff::getFinal()

Description Description

This reconstructs the $to_lines parameter passed to the constructor.

Return Return

(array) The sequence of strings.

Source Source

File: wp-includes/Text/Diff.php

    function getFinal()
    {
        $lines = array();
        foreach ($this->_edits as $edit) {
            if ($edit->final) {
                array_splice($lines, count($lines), 0, $edit->final);
            }
        }
        return $lines;
    }

Advertisement

Advertisement

Leave a Reply