mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-26 22:08:55 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324122 c90b9560-bf6c-de11-be94-00142212c4b1
85 lines
2 KiB
XML
85 lines
2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<sect1 xml:id="language.pseudo-types">
|
|
<title>Pseudo-types and variables used in this documentation</title>
|
|
|
|
<sect2 xml:id="language.types.mixed">
|
|
<title>mixed</title>
|
|
|
|
<para>
|
|
<literal>mixed</literal> indicates that a parameter may accept multiple (but
|
|
not necessarily all) types.
|
|
</para>
|
|
|
|
<para>
|
|
<function>gettype</function> for example will accept all PHP types, while
|
|
<function>str_replace</function> will accept <type>string</type>s and
|
|
<type>array</type>s.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.number">
|
|
<title>number</title>
|
|
|
|
<para>
|
|
<literal>number</literal> indicates that a parameter can be either
|
|
<type>integer</type> or <type>float</type>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.callback">
|
|
<title>callback</title>
|
|
|
|
<para>
|
|
<type>callback</type> pseudo-types was used in this documentation before
|
|
<type>callable</type> type hint was introduced by PHP 5.4. It means exactly
|
|
the same.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.void">
|
|
<title>void</title>
|
|
|
|
<para>
|
|
<literal>void</literal> as a return type means that the return value is
|
|
useless. <literal>void</literal> in a parameter list means that the function
|
|
doesn't accept any parameters.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 xml:id="language.types.dotdotdot">
|
|
<title>...</title>
|
|
|
|
<para>
|
|
<parameter>$...</parameter> in function prototypes means
|
|
<literal>and so on</literal>. This variable name is used when a function can
|
|
take an endless number of arguments.
|
|
</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
|
|
-->
|