Easy Tutorial
❮ Func String Trim Func Ftp Rawlist ❯

PHP tmpfile() Function



Definition and Usage

The tmpfile() function creates a temporary file with a unique filename in read-write (w+) mode.

Syntax


Tips and Notes

Note: The temporary file is automatically deleted after the file is closed (using fclose()) or when the script ends.

Tip: See tempnam().


Example

The above code will output:


❮ Func String Trim Func Ftp Rawlist ❯