SplTempFileObject::__constructConstruct a new temporary file object Description
public SplTempFileObject::__construct(int
$maxMemory = 2 * 1024 * 1024)Construct a new temporary file object. Parameters
Errors/ExceptionsThrows a RuntimeException if an error occurs. Examples
Example #1 SplTempFileObject example This example writes a temporary file in memory which can be written to and read from.
The above example will output something similar to: Written 47 bytes to temporary file. This is the first line And this is the second. |