Complete PHP Filesystem Reference
The tmpfile() function creates a temporary file with a unique name in read-write (w+) mode.
Note: The temporary file is automatically removed when it is closed with fclose(), or when the script ends.
Tip: See also tempnam()
The output of the code above will be:
Complete PHP Filesystem Reference
Your message has been sent to W3Schools.