« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for AppReportName (0.001 sec.)
SyncSharedMemory::first — Check to see if the object is the first instance syst... 12814
SyncSharedMemory::first (PECL sync >= 1.1.0) SyncSharedMemory::first — Check to see if the object is the first instance system-wide of named shared memory 説明 public function SyncSharedMemory::first (): bool Retrieves the system-wide first ... に true を、失敗した場合に false を返します。 例 例1 SyncSharedMemory::first() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); if ( $mem -> first ()) { // Do first time initialization work here. } var_dump ( $mem -> first ()); $mem2 = new ... SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem2 -> first ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) bool(false) 参考 S ...
https://man.mtool.work/php/8.3/syncsharedmemory.first.html
SyncSharedMemory::size — Returns the size of the named shared memory | PHP 8.3 8787
SyncSharedMemory::size (PECL sync >= 1.1.0) SyncSharedMemory::size — Returns the size of the named shared memory 説明 public function SyncSharedMemory::size (): int Retrieves the shared memory size of a SyncSharedMemory object. パラメータ こ ... same size that was passed to the constructor. 例 例1 SyncSharedMemory::size() example <?php $mem = new SyncSharedMemory ( "AppReportName" , 1024 ); var_dump ( $mem -> size ()); ?> 上の例の出力は、 たとえば以下のようになります。 int(1024) 参考 SyncSharedMemory ...
https://man.mtool.work/php/8.3/syncsharedmemory.size.html
SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object | PHP ... 8107
SyncSharedMemory::__construct (PECL sync >= 1.1.0) SyncSharedMemory::__construct — Constructs a new SyncSharedMemory object 説明 public function SyncSharedMemory::__construct ( string $name , int $size ) Constructs a named shared memory obj ... nchronization 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 ( json_encode (ar ...
https://man.mtool.work/php/8.3/syncsharedmemory.construct.html
SyncSharedMemory::read — Copy data from named shared memory | PHP 8.3 8107
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 ... nchronization 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" ); ...
https://man.mtool.work/php/8.3/syncsharedmemory.read.html
SyncSharedMemory::write — Copy data to named shared memory | PHP 8.3 8107
SyncSharedMemory::write (PECL sync >= 1.1.0) SyncSharedMemory::write — Copy data to named shared memory 説明 public function SyncSharedMemory::write ( string $string = ? , int $start = 0 ) Copies data to named shared memory. パラメータ stri ... nchronization 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" ); ...
https://man.mtool.work/php/8.3/syncsharedmemory.write.html
PREV 1 NEXT