<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ffi.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'ffi.scope.php',
    1 => 'FFI::scope',
    2 => 'Instantiates an FFI object with C declarations parsed during preloading',
  ),
  'up' => 
  array (
    0 => 'class.ffi.php',
    1 => 'FFI',
  ),
  'prev' => 
  array (
    0 => 'ffi.new.php',
    1 => 'FFI::new',
  ),
  'next' => 
  array (
    0 => 'ffi.sizeof.php',
    1 => 'FFI::sizeof',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ffi/ffi/scope.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ffi.scope" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">FFI::scope</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.4.0, PHP 8)</p><p class="refpurpose"><span class="refname">FFI::scope</span> &mdash; <span class="dc-title">Instantiates an FFI object with C declarations parsed during preloading</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-ffi.scope-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>FFI::scope</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><a href="class.ffi.php" class="type FFI">FFI</a></span></div>

  <p class="simpara">
   Instantiates an FFI object with C declarations parsed during preloading.
  </p>
  <p class="simpara">
   The <span class="methodname"><strong>FFI::scope()</strong></span> method is safe to call multiple times for the same scope. Multiple references to the
   same scope may be loaded at the same time.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-ffi.scope-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <span class="simpara">
      The scope name defined by a special <code class="literal">FFI_SCOPE</code> define.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-ffi.scope-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Returns the freshly created <span class="classname"><a href="class.ffi.php" class="classname">FFI</a></span> object.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-ffi.scope-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="ffi.load.php" class="methodname" rel="rdfs-seeAlso">FFI::load()</a> - Loads C declarations from a C header file</span></li>
  </ul>
 </div>


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