• PHP Video Tutorials

PHP - xdiff string_rabdiff() Function



xdiff_string_rabdiff() function can make a binary diff of two strings by using Rabin's polynomial fingerprinting algorithm.

Syntax

string xdiff_string_bdiff( string $old_data , string $new_data )

xdiff_string_rabdiff() function can make a binary diff of two strings and return the result. The difference between xdiff_string_rabdiff() and xdiff_string_bdiff() is different algorithms used that result in faster execution and smaller diff produced. 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_rabdiff() function can return a string with binary diff containing differences between "old" and "new" data or false if an internal error has occurred.

php_function_reference.htm
Advertisements