PHP Class PHPUnit_Util_Diff, qcodo

Author: Sebastian Bergmann ([email protected])
Author: Kore Nordmann ([email protected])
ファイルを表示 Open project: qcodo/qcodo Class Usage Examples

Public Methods

Method Description
diff ( array | string $from, array | string $to ) : string Returns the diff between two arrays or strings.

Protected Methods

Method Description
longestCommonSubsequence ( array $from, array $to ) : array Calculates the longest common subsequence of two arrays.

Method Details

diff() public static method

Returns the diff between two arrays or strings.
public static diff ( array | string $from, array | string $to ) : string
$from array | string
$to array | string
return string

longestCommonSubsequence() protected static method

Calculates the longest common subsequence of two arrays.
protected static longestCommonSubsequence ( array $from, array $to ) : array
$from array
$to array
return array