Text_Diff::getOriginal

Advertisement

Summery Summery

Gets the original set of lines.

Syntax Syntax

Text_Diff::getOriginal()

Description Description

This reconstructs the $from_lines parameter passed to the constructor.

Return Return

(array) The original sequence of strings.

Source Source

File: wp-includes/Text/Diff.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.