Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
DiffMatchPatch
DiffMatchPatch
patch_apply
DiffMatchPatch\DiffMatchPatch::patch_apply PHP Method
DiffMatchPatch Class Documentation
Show file
Open project: yetanotherape/diff-match-patch
patch_apply()
public
method
Merge a set of patches onto the text. Return a patched text, as well as a list of true/false values indicating which patches were applied.
public
patch_apply
(
PatchObject[]
$patches
,
string
$text
) :
array
$patches
PatchObject[]
Array of PatchObjects.
$text
string
Old text.
return
array
Two element Array, containing the new text and an array of boolean values.
public function patch_apply($patches, $text) { return $this->patch->apply($patches, $text); }
DiffMatchPatch
__construct
__get
__set
diff_cleanupEfficiency
diff_cleanupSemantic
diff_levenshtein
diff_main
diff_prettyHtml
match_main
patch_apply
patch_fromText
patch_make
patch_toText