php8.5
Home/ Manual/ eio / functions/ eio_write

eio_write

PHP function Edit on GitHub ✎

(PECL eio >= 0.0.1dev)

Write to file

Description

eio_write(mixed $fd, string $str, int $length = 0, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, mixed $data = NULL): resource

eio_write() writes up to length bytes from str at offset offset from the beginning of the file.

Parameters

fd

Stream, Socket resource, or numeric file descriptor, e.g. returned by eio_open()

str

Source string

length

Maximum number of bytes to write.

offset

Offset from the beginning of file.

pri

Values

callback

Proto

data

Arbitrary variable passed to callback.

Return Values

eio_write() returns request resource on success,Falseforfailure.

See Also

Source: reference/eio/functions/eio-write.xml · from the official PHP manual (php/doc-en)