shmop_size
Description
The shmop_size of Shmop for PHP gets the size of the shared memory block.
Syntax
shmop_size( Shmop $shmop ): int
Parameters
shmop
The shared memory block identifier created by shmop_open().
Return
Returns an int, which represents the number of bytes the shared memory block occupies.
Examples
1 · shmop
<? $filename = __FILE__; $project_id = "t"; $key = ftok($filename, $project_id); $mode = "a"; $permissions = 0o644; $size = 16; $shmop = shmop_open($key, $mode, $permissions, $size); $return = shmop_size($shmop); echo $return; ?>
16