function DrupalLocalStreamWrapper::stream_write

Support for fwrite(), file_put_contents() etc.

Parameters

$data: The string to be written.

Return value

The number of bytes written (integer).

Overrides StreamWrapperInterface::stream_write

See also

http://php.net/manual/streamwrapper.stream-write.php

File

includes/stream_wrappers.inc, line 473

Class

DrupalLocalStreamWrapper
Drupal stream wrapper base class for local files.

Code

public function stream_write($data) {
    return fwrite($this->handle, $data);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.