<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.shm-get-var.php',
    1 => 'shm_get_var',
    2 => 'Возвращает переменную из разделяемой памяти',
  ),
  'up' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Функции семафоров',
  ),
  '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' => 'ru',
    'path' => 'reference/sem/functions/shm-get-var.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.shm-get-var" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">shm_get_var</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">shm_get_var</span> &mdash; <span class="dc-title">Возвращает переменную из разделяемой памяти</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.shm-get-var-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>shm_get_var</strong></span>(<span class="methodparam"><span class="type"><a href="class.sysvsharedmemory.php" class="type SysvSharedMemory">SysvSharedMemory</a></span> <code class="parameter">$shm</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="simpara">
   <span class="function"><strong>shm_get_var()</strong></span> возвращает переменную по ключу
   <code class="parameter">key</code> в указанном сегменте разделяемой памяти.
   Переменная всё ещё присутствует в разделяемой памяти.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.shm-get-var-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   
    <dt><code class="parameter">shm</code></dt>
    <dd>
     <span class="simpara">
      Сегмент разделяемой памяти, полученный из <span class="function"><a href="function.shm-attach.php" class="function">shm_attach()</a></span>.
     </span>
    </dd>
   
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <span class="simpara">
      Ключ переменной.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.shm-get-var-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   Возвращает переменную с заданным ключом.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.shm-get-var-changelog">
  <h3 class="title">Список изменений</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версия</th>
      <th>Описание</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">shm</code> теперь ожидает экземпляр <span class="classname"><a href="class.sysvsharedmemory.php" class="classname">SysvSharedMemory</a></span>;
       ранее ожидался ресурс (<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>).
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.shm-get-var-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.shm-has-var.php" class="function" rel="rdfs-seeAlso">shm_has_var()</a> - Проверяет, существует ли конкретная запись</span></li>
   <li><span class="function"><a href="function.shm-put-var.php" class="function" rel="rdfs-seeAlso">shm_put_var()</a> - Вставляет или обновляет переменную в разделяемой памяти</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>