DIO_WRITE(3) 1 DIO_WRITE(3)
dio_write - Writes data to fd with optional truncation at length
SYNOPSIS
int dio_write (resource $fd, string $data, [int $len])
DESCRIPTION
dio_write(3) writes up to $len bytes from $data to file $fd.
PARAMETERS
o $fd
- The file descriptor returned by dio_open(3).
o $data
- The written data.
o $len
- The length of data to write in bytes. If not specified, the function writes all the data to the specified file.
RETURN VALUES
Returns the number of bytes written to $fd.
SEE ALSO
dio_read(3).
PHP Documentation Group DIO_WRITE(3)