Function __global->flock
Definitions
sources_custom/phpstub.php
- Portable advisory file locking.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $handle | resource | No | No | required parameter | N/A | N/A | File handle |
| $operation | integer | No | No | required parameter | N/A | N/A | Operation (LOCK_SH, LOCK_EX, LOCK_UN) |
Returns
- Success status
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Portable advisory file locking.
*
* @param resource $handle File handle
* @param integer $operation Operation (LOCK_SH, LOCK_EX, LOCK_UN)
* @return boolean Success status
*/
function flock($handle, int $operation) : bool
* Portable advisory file locking.
*
* @param resource $handle File handle
* @param integer $operation Operation (LOCK_SH, LOCK_EX, LOCK_UN)
* @return boolean Success status
*/
function flock($handle, int $operation) : bool

