PHP 8.1.28 Released!

SyncSharedMemory::size

(PECL sync >= 1.1.0)

SyncSharedMemory::sizeReturns the size of the named shared memory

Beschreibung

public SyncSharedMemory::size(): int

Retrieves the shared memory size of a SyncSharedMemory object.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

An integer containing the size of the shared memory. This will be the same size that was passed to the constructor.

Beispiele

Beispiel #1 SyncSharedMemory::size() example

<?php
$mem
= new SyncSharedMemory("AppReportName", 1024);
var_dump($mem->size());
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(1024)

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top