shmop_read
(PHP 4 >= 4.0.4, PHP 5)
shmop_read -- 共有メモリブロックからデータを読み込む
説明
string
shmop_read ( int shmid, int offset, int count )
shmop_read() は共有メモリブロックから文字列を読
み込みます。
shmop_read() は3つの引数をとります。shmidは
shmop_open()により作成された共有ブロックID、
offsetは読み始める位置のオフセット、countは読み込むバイト数です。
例 1. 共有メモリブロックを読み込む
<?php $shm_data = shmop_read($shm_id, 0, 50); ?>
|
|
この例は共有メモリブロックから50バイトを読み込んで、
$shm_dataの中のデータに置くものです。