PHP Handbuch
Zurück |  | Nach vorne

# xdiff_string_patch

(no version information, might be only in CVS)

xdiff_string_patch -- Patch a string with an unified diff.

## Description

string xdiff_string_patch ( string str, string patch [, int flags [, string & error]])

xdiff_string_patch() patches string `str` with unified patch in string `patch`.

`flags` can be either `XDIFF_PATCH_NORMAL` (default mode, normal patch) or `XDIFF_PATCH_REVERSE` (reversed patch).

If `error` is passed then rejected parts are stored inside this variable.

Returns a patched string.

See also xdiff_file_patch().

Zurück | Zum Anfang | Nach vorne
xdiff_string_patch_binary | Nach oben | XSL functions