Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
shmop_writeとは何? わかりやすく解説 Weblio辞書
[go: Go Back, main page]

shmop_writeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > shmop_writeの意味・解説 

shmop_write

(PHP 4 >= 4.0.4, PHP 5)
shmop_write — 共有メモリブロックにデータを書き込む

説明

int shmop_write ( int shmid, string data, int offset )
shmop_write() は共有メモリブロックに文字列を 書き込みます。

パラメータ

shmid
shmop_open() が作成した共有メモリブロックの識別子。
data
共有メモリブロックに書き込む文字列。
offset
共有メモリセグメント内でデータを書き込み始める位置。

返り値

書き込んだ data の大きさ、あるいは失敗した場合に FALSE を返します。

例 2095. 共有メモリブロックに書き込む
<?php
$shm_bytes_written = shmop_write($shm_id, $my_string, 0);
?>


この例は、共有メモリブロックに $my_string 内の データを書き込みます。$shm_bytes_written には、 書き込んだバイト数が代入されます。

参考

shmop_read()




英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「shmop_write」の関連用語

shmop_writeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



shmop_writeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2026 by the PHP Documentation Group.

©2026 GRAS Group, Inc.RSS