SyncSharedMemory::write Copy data to named shared memory &reftitle.description; public SyncSharedMemory::write stringstring intstart0 Copies data to named shared memory. &reftitle.parameters; string The data to write to shared memory. If the size of the data exceeds the size of the shared memory, the number of bytes written returned will be less than the length of the input. start The start/offset, in bytes, to begin writing. If the value is negative, the starting position will begin at the specified number of bytes from the end of the shared memory segment. &reftitle.returnvalues; An integer containing the number of bytes written to shared memory. &reftitle.examples; <function>SyncSharedMemory::write</function> example first()) { // Do first time initialization work here. } $result = $mem->write("report.txt"); var_dump($result); $result = $mem->write("report.txt", -3); var_dump($result); ?> ]]> &example.outputs.similar; &reftitle.seealso; SyncSharedMemory::__construct SyncSharedMemory::first SyncSharedMemory::write SyncSharedMemory::read