• PHP Video Tutorials

PHP - xdiff string_bdiff() Function



xdiff_string_bdiff() function can make a binary diff of two strings.

Syntax

string xdiff_string_bdiff( string $old_data , string $new_data )

xdiff_string_bdiff() function can make a binary diff of two strings and return the result. This function can work with both text and binary data. The resulting patch can be later applied by using xdiff_string_bpatch()/xdiff_file_bpatch().

xdiff_string_bdiff() function can return a string with a binary diff containing differences between the "old" and "new" data or false if an internal error has occurred.

php_function_reference.htm
Advertisements