|
xdiff_string_diff(PECL xdiff >= 0.2.0) xdiff_string_diff — Make unified diff of two strings Описание
string xdiff_string_diff
( string $old_data
, string $new_data
[, int $context = 3
[, bool $minimal = false
]] )
Makes an unified diff containing differences between old_data string and new_data string and returns it. The resulting diff is human-readable. An optional context parameter specifies how many lines of context should be added around each change. Setting minimal parameter to true will result in outputting the shortest patch file possible (can take a long time). Список параметров
Возвращаемые значенияReturns string with resulting diff or FALSE if an internal error happened. Примеры
Пример #1 xdiff_string_diff() example The following code makes unified diff of two articles.
<?php Примечания
|
|