DiffMatchPatch\DiffMatchPatch::patch_apply PHP Method

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);
    }