Function __global->diff_3way_text

Definitions

sources/diff.php

  • Create a 3-way diff between three files.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text_1 PATH No No required parameter N/A N/A First file contents
$text_2 PATH No No required parameter N/A N/A Second file contents
$text_3 PATH No No required parameter N/A N/A Third file contents (to apply diff between $text_1 and $text_2 to)

Returns

  • New text
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Create a 3-way diff between three files.
 *
 * @param  PATH $text_1 First file contents
 * @param  PATH $text_2 Second file contents
 * @param  PATH $text_3 Third file contents (to apply diff between $text_1 and $text_2 to)
 * @return string New text
 */

function diff_3way_text(string $text_1, string $text_2, string $text_3) : string