shmop_size
(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)
shmop_size — 共有メモリブロックの大きさを取得する
戻り値
共有メモリブロックが専有している大きさをバイト単位で返します。
変更履歴
バージョン | 説明 |
---|---|
8.0.0 |
引数 shmop は、
Shmop クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、リソースが期待されていました。
|
例
例1 共有メモリブロックのサイズを取得する
<?php
$shm_size = shmop_size($shm_id);
?>
この例は、$shm_id
で識別される共有メモリブロックのサイズを
$shm_size
に代入しています。
+add a note
User Contributed Notes
There are no user contributed notes for this page.
![To Top](/images/to-top@2x.png)
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google