• PHP Video Tutorials

PHP - bzip2 bzerror() Function


Advertisements

bzerror() function can return a bzip2 error number and error string in an array.

Syntax

array bzerror( resource $bz )

bzerror() function can return an error number and error string of any bzip2 error returned by a given file pointer.

bzerror() function can return an associative array with an error code in an errno entry and an error message in the errstr entry.

Example

<?php
   $error = bzerror($bz);
   echo $error["errno"];
   echo $error["errstr"];
?>  
php_function_reference.htm
Advertisements