array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.shm-get-var.php', 1 => 'shm_get_var', ), 'up' => array ( 0 => 'ref.sem.php', 1 => 'Semaphore Functions', ), 'prev' => array ( 0 => 'function.shm-detach.php', 1 => 'shm_detach', ), 'next' => array ( 0 => 'function.shm-has-var.php', 1 => 'shm_has_var', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sem/functions/shm-get-var.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
shm_get_var — Returns a variable from shared memory
shm_get_var() returns the variable with a given
key
, in the given shared memory segment.
The variable is still present in the shared memory.
Returns the variable with the given key.
Version | Description |
---|---|
8.0.0 |
shm expects a SysvSharedMemory
instance now; previously, a resource was expected.
|