Home > PHP > Function > Shared Memory > shmop_size()

shmop_size()

shmop_size - Get size of shared memory block

Syntax

int shmop_size (int $shmid)

Arguments

  • shmid - The shared memory block identifier created by shmop_open()

Description

shmop_size() is used to get the size, in bytes of the shared memory block.

Version

PHP 4.0.4, 5

Return value

Returns an int, which represents the number of bytes the shared memory block occupies.