How to get the default operating system temporary directory in PHP?

In PHP, is there any way [or some function that has the purpose] to get the directory where temporary files are saved in a certain operating system?

I know that the function tempnam generates a temporary name for a file. When the directory passed by First parameter does not exist, it returns a file name along with the temporary folder.

But I want to know how to get only the temporary folder.

Author: Maniero, 2015-08-03

1 answers

sys_get_temp_dir(). Only this:)

 3
Author: Maniero, 2015-08-03 15:32:44