K2hash::close
Closes the k2hash file
Description
public bool K2hash::close ([ int $waitms ] )
Closes the k2hash (.k2h) file handle internally opened by K2hash::open and saves the data.
Parameters
- waitms
Specifies microseconds to wait before closing the k2h file.
Return Values
Returns true on success or false on failure.
Examples
- Example 1 - Closes a k2hash file
<?php
$k2hash = new K2hash();
$k2hash->openMem();
var_dump($k2hash->close());
?>
The above example will output:
bool(true)
See Also
- K2hash::open - Opens the k2h file
- K2hash::openMem - Attaches k2hash data segments on memory
- K2hash::openRO - Read the k2hash file
- K2hash::openRW - Edit the k2hash file
- K2hash::openTempfile - Edit the k2hash file on temporary file system