SplTempFileObject::__constructConstruct a new temporary file object Beschreibung
public SplTempFileObject::__construct
([ int
$max_memory
] )Construct a new temporary file object. Parameter-Liste
RückgabewerteEs wird kein Wert zurückgegeben. Fehler/ExceptionsThrows a RuntimeException if an error occurs. Beispiele
Beispiel #1 SplTempFileObject example This example writes a temporary file in memory which can be written to and read from.
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Written 47 bytes to temporary file. This is the first line And this is the second. |