Function __global->fopen
Definitions
sources_custom/phpstub.php
- {{creates-file}}}}
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
-
Flags:
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $filename | PATH | No | No | required parameter | N/A | N/A | Filename |
| $mode | string | No | No | required parameter | N/A | N/A | Mode (e.g. at). |
| $use_include_path | boolean | No | No | False | N/A | N/A | Whether to search within the include path |
| $context | ?resource | No | No | Null | N/A | N/A | A stream context to attach to (null: no special context) |
Returns
- The file handle (false: could not be opened)
- Type: ~resource
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* {{creates-file}}}}
*
* @param PATH $filename Filename
* @param string $mode Mode (e.g. at).
* @param boolean $use_include_path Whether to search within the include path
* @param ?resource $context A stream context to attach to (null: no special context)
* @return ~resource The file handle (false: could not be opened)
*/
function fopen(string $filename, string $mode, bool $use_include_path = false, $context = null)
* {{creates-file}}}}
*
* @param PATH $filename Filename
* @param string $mode Mode (e.g. at).
* @param boolean $use_include_path Whether to search within the include path
* @param ?resource $context A stream context to attach to (null: no special context)
* @return ~resource The file handle (false: could not be opened)
*/
function fopen(string $filename, string $mode, bool $use_include_path = false, $context = null)

