SHMOP_READ(3) 1 SHMOP_READ(3)
shmop_read - Read data from shared memory block
SYNOPSIS
string shmop_read (int $shmid, int $start, int $count)
DESCRIPTION
shmop_read(3) will read a string from shared memory block.
PARAMETERS
o $shmid
- The shared memory block identifier created by shmop_open(3)
o $start
- Offset from which to start reading
o $count
- The number of bytes to read
RETURN VALUES
Returns the data or FALSE on failure.
EXAMPLES
Example #1
Reading shared memory block
<?php
$shm_data = shmop_read($shm_id, 0, 50);
?>
This example will read 50 bytes from shared memory block and place the data inside $shm_data.
SEE ALSO
shmop_write(3).
PHP Documentation Group SHMOP_READ(3)