Summary: Write data into shared memory block
PHP 5Related methods: shmop_read
int shmop_write(resource $shmid, string $data, int $offset)
shmop_write() will write a string into shared memory block.
The size of the written
FALSE on failure.
- resource $shmid: The shared memory block identifier created by shmop_open()
- string $data: A string to write into shared memory block
- int $offset: Specifies where to start writing data inside the shared memory segment.
Example #1 Writing to shared memory block
$shm_bytes_written = shmop_write($shm_id, $my_string, 0);
|7.0.0||The type of |