shmop_write() - shmop函数(共享内存)
shmop_write()
(PHP 4 >= 4.0.4, PHP 5, PHP 7)
Write data into shared memory block
说明
shmop_write(resource $shmid,string $data,int $offset): intshmop_write() will write a string into shared memory block.
参数
$shmidThe shared memory block identifier created by shmop_open()
$dataA string to write into shared memory block
$offsetSpecifies where to start writing data inside the shared memory segment.
返回值
The size of the written$data, or FALSE
on failure.
更新日志
版本 | 说明 |
---|---|
7.0.0 | The type of$shmidhas been changed from int to resource. |
范例
Writing to shared memory block
This example will write data inside$my_stringinto shared memory block,$shm_bytes_writtenwill contain the number of bytes written.
参见
shmop_read()
Read data from shared memory block
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!