Skip to content

add support for creating a temporary file with a custom name

Compare
Choose a tag to compare
@phpdevcommunity phpdevcommunity released this 05 Dec 10:45
· 2 commits to main since this release
  • The createTempFile method now allows specifying a custom filename.
  • If no name is provided, a temporary file is created with the prefix 'tmp_' in the system's temporary directory.
  • If a name is provided, the file is created in the temporary directory with the specified name if it does not already exist.