Func Filesystem Tmpfile
# PHP tmpfile() Function
* * Complete PHP Filesystem Reference Manual](#)
* * *
## Definition and Usage
The tmpfile() function creates a temporary file with a unique filename in read/write (w+) mode.
## Syntax
tmpfile()
* * *
## Tips and Notes
**Note:** The temporary file is automatically deleted when it is closed (using fclose()) or when the script ends.
**Tip:** See also tempnam().
* * *
## Example
The code above will output:
Testing, testing.
* * Complete PHP Filesystem Reference Manual](#)
YouTip