• PHP Video Tutorials

PHP - xdiff string_bdiff_size() Function



xdiff_string_bdiff_size() function can read the size of a file created by applying a binary diff.

Syntax

int xdiff_string_bdiff_size( string $patch )

xdiff_string_bdiff_size() function can return the size of a result file created after applying a binary patch to an original file.

Example

<?php
   $binary_patch = file_get_contents("file.bdiff");
   $length = xdiff_string_bdiff_size($binary_patch);
   
   echo "Resulting file will be $length bytes long";
?>
php_function_reference.htm
Advertisements