<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'ffi.type.php',
    1 => 'FFI::type',
    2 => 'Crea un objeto FFI\\CType a partir de una declaraci&oacute;n C',
  ),
  'up' => 
  array (
    0 => 'class.ffi.php',
    1 => 'FFI',
  ),
  'prev' => 
  array (
    0 => 'ffi.string.php',
    1 => 'FFI::string',
  ),
  'next' => 
  array (
    0 => 'ffi.typeof.php',
    1 => 'FFI::typeof',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/ffi/ffi/type.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ffi.type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">FFI::type</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.4.0, PHP 8)</p><p class="refpurpose"><span class="refname">FFI::type</span> &mdash; <span class="dc-title">Crea un objeto FFI\CType a partir de una declaración C</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-ffi.type-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>FFI::type</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$type</code></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.ffi-ctype.php" class="type FFI\CType">FFI\CType</a></span></span></div>

  <p class="simpara">
   Esta función crea y devuelve un objeto <span class="classname"><a href="class.ffi-ctype.php" class="classname">FFI\CType</a></span> para el
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span> dado que contiene una declaración de tipo C.
   Cualquier tipo declarado para la instancia está permitido.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-ffi.type-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">type</code></dt>
    <dd>
     <span class="simpara">
      Una declaración C válida como <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-ffi.type-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="simpara">
   Devuelve el objeto <span class="classname"><a href="class.ffi-ctype.php" class="classname">FFI\CType</a></span> recién creado,
   o <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> en caso de fallo.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-ffi.type-changelog">
  <h3 class="title">Historial de cambios</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versión</th>
      <th>Descripción</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.3.0</td>
      <td>
       La llamada estática de <span class="methodname"><strong>FFI::type()</strong></span> está ahora obsoleta.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


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