HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

shmop_delete

Description

The shmop_delete of Shmop for PHP deletes the shared memory block.

Syntax

shmop_delete(
    Shmop $shmop
): bool

Parameters

shmop

The shared memory block resource created by shmop_open().

Return

Returns true on success or false on failure.

Examples

1 · shmop

<?

$filename = __FILE__;
$project_id = "t";

$key = ftok($filename, $project_id);
$mode = "c";
$permissions = 0o644;
$size = 16;

$shmop = shmop_open($key, $mode, $permissions, $size);

$return = shmop_delete($shmop);

var_export($return);
Array
(
    [0] => My-Header-1: Test
    [1] => My-Header-3: Test
)