mirror of
https://github.com/php/doc-es.git
synced 2026-04-26 08:38:05 +02:00
40719975b6
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@337551 c90b9560-bf6c-de11-be94-00142212c4b1
98 lines
2.5 KiB
XML
98 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 01ba7cb60a820f300053a9e2ebdbff8ddb679b8a Maintainer: jpberdejo Status: ready -->
|
|
<!-- Reviewed: yes Maintainer: seros -->
|
|
<sect1 xml:id="language.pseudo-types">
|
|
<title>Seudotipos y variables usadas en esta documentación</title>
|
|
|
|
<sect2 xml:id="language.types.mixed">
|
|
<title>mixed</title>
|
|
|
|
<para>
|
|
<literal>mixed</literal> indica que un parámetro puede aceptar múltiples tipos (pero no
|
|
necesariamente todos).
|
|
</para>
|
|
|
|
<para>
|
|
<function>gettype</function>, por ejemplo, puede aceptar todos los tipos de PHP, mientras que
|
|
<function>str_replace</function> sólo acepta <type>string</type>s y
|
|
<type>array</type>s.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.number">
|
|
<title>number</title>
|
|
|
|
<para>
|
|
<literal>number</literal> indica que un parámetro puede ser tanto un <type>integer</type>
|
|
como un <type>float</type>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.callback">
|
|
<title>callback</title>
|
|
|
|
<para>
|
|
Los seudotipos <type>callback</type> se usaban en esta documentación antes de que
|
|
la declaración de tipo <type>callable</type> fuera introducida en PHP 5.4. Significan exactamente
|
|
lo mismo.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.array-object">
|
|
<title>array|object</title>
|
|
|
|
<para>
|
|
<literal>array|object</literal> indica que un parámetro puede ser o
|
|
un <type>array</type> o un <type>object</type>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.void">
|
|
<title>void</title>
|
|
|
|
<para>
|
|
<literal>void</literal>, como tipo de retorno, significa que el valor de
|
|
retorno no es útil. <literal>void</literal>, en una lista de parámetros, significa que la
|
|
función no acepta ningún parámetro.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.dotdotdot">
|
|
<title>...</title>
|
|
|
|
<para>
|
|
<parameter>$...</parameter>, en el prototipo de funciones, significa
|
|
<literal>etcétera</literal>. Este nombre de variable se usa cuando una función
|
|
puede tomar un número infinito de argumentos.
|
|
</para>
|
|
|
|
</sect2>
|
|
</sect1>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|