getTemporaryDirectory.php
Table of Contents
Functions
- getTemporaryDirectory() : string
- Builds a path inside the system temporary directory.
Functions
getTemporaryDirectory()
Builds a path inside the system temporary directory.
getTemporaryDirectory([string|array<string|int, string>|null $path = null ][, bool $assertable = false ][, bool $isReadable = true ][, bool $isWritable = false ]) : string
Parameters
- $path : string|array<string|int, string>|null = null
-
Optional sub‑path(s) to append inside sys_get_temp_dir().
- $assertable : bool = false
-
Whether to validate the final directory path. Defaults to false because the directory may not exist yet.
- $isReadable : bool = true
-
Check if the directory is readable (Default true).
- $isWritable : bool = false
-
Check if the directory is writable (Default false).
Tags
Return values
string —Normalised temporary directory path.