Function __global->unlink
Definitions
sources_custom/phpstub.php
- Deletes a file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $filename | PATH | No | No | required parameter | N/A | N/A | The filename |
| $context | ?resource | No | No | Null | N/A | N/A | A stream context to attach to (null: no special context) |
Returns
- Success status
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Deletes a file.
*
* @param PATH $filename The filename
* @param ?resource $context A stream context to attach to (null: no special context)
* @return boolean Success status
*/
function unlink(string $filename, $context = null) : bool
* Deletes a file.
*
* @param PATH $filename The filename
* @param ?resource $context A stream context to attach to (null: no special context)
* @return boolean Success status
*/
function unlink(string $filename, $context = null) : bool

