public function vfsStreamFile::write in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php \org\bovigo\vfs\vfsStreamFile::write()
writes an amount of data
Using this method changes the time when the file was last modified.
Parameters
string $data:
Return value
amount of written bytes
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php, line 194
Class
- vfsStreamFile
- File container.
Namespace
org\bovigo\vfsCode
public function write($data) {
$this->lastModified = time();
return $this->content
->write($data);
}