mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
41 lines
1.2 KiB
XML
41 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: marcosmarcolin Status: ready --><!-- CREDITS: marcosmarcolin -->
|
|
<sect1 xml:id="language.types.void">
|
|
<title>Void</title>
|
|
|
|
<para>
|
|
<type>void</type> é uma declaração de tipo de retorno indicando que
|
|
a função não retorna um valor, mas a função ainda pode terminar.
|
|
Portanto, não pode fazer parte de uma declaração de
|
|
<link linkend="language.types.type-system.composite.union">tipo de união</link>.
|
|
Disponível a partir do PHP 7.1.0.
|
|
</para>
|
|
|
|
<note>
|
|
<simpara>
|
|
Mesmo que uma função tenha um tipo de retorno <type>void</type>, ela ainda
|
|
retornará um valor, esse valor é sempre &null;.
|
|
</simpara>
|
|
</note>
|
|
|
|
</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
|
|
-->
|