PHP Класс Mutagenesis\Utility\Diff

Автор: Sebastian Bergmann ([email protected])
Автор: Kore Nordmann ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
difference ( array | string $from, array | string $to, integer $contextLines = 3 ) : string Returns the diff between two arrays or strings.

Защищенные методы

Метод Описание
longestCommonSubsequence ( array $from, array $to ) : array Calculates the longest common subsequence of two arrays.

Описание методов

difference() публичный статический метод

Returns the diff between two arrays or strings.
public static difference ( array | string $from, array | string $to, integer $contextLines = 3 ) : string
$from array | string
$to array | string
$contextLines integer
Результат string

longestCommonSubsequence() защищенный статический метод

Calculates the longest common subsequence of two arrays.
protected static longestCommonSubsequence ( array $from, array $to ) : array
$from array
$to array
Результат array