Write data to the stream
string $string The string that is to be written.:
int|bool Returns the number of bytes written to the stream on success or FALSE on failure.
Overrides StreamInterface::write
public function write($string) {
if (!$this->cache[self::IS_WRITABLE]) {
return 0;
}
$bytes = fwrite($this->stream, $string);
$this->size += $bytes;
return $bytes;
}