Results of 1 - 1 of about 1 for ort (0.001 sec.)
- SyncSharedMemory::read — Copy data from named shared memory | PHP 8.3 9414
- SyncSharedMemory::read (PECL sync >= 1.1.0) SyncSharedMemory::read — Copy data from named shared memory 説明 public function SyncSharedMemory::read ( int $start = 0 , int $length = ? ) Copies data from named shared memory. パラメータ start
... ization objects. // Shared memory goes away when the last reference to it disappears. $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } $result = $mem -> write ( "report.txt ... ); $result = $mem -> read ( 3 , - 4 ); var_dump ( $result ); ?> 上の例の出力は、 たとえば以下のようになります。 string(3) "ort" 参考 SyncSharedMemory::__construct() - Constructs a new SyncSharedMemory object SyncSharedMemory::first() - Check to see ...
-
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
PREV
1
NEXT