mirror of
https://github.com/php/doc-es.git
synced 2026-03-25 16:02:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@327636 c90b9560-bf6c-de11-be94-00142212c4b1
87 lines
2.0 KiB
XML
87 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: c5849e0c38a9bf7921d40f8ec946110ba8994d01 Maintainer: jorgeolaya Status: ready -->
|
|
<!-- Reviewed: yes Maintainer: seros -->
|
|
|
|
<sect1 xml:id="language.types.null">
|
|
<title>NULO</title>
|
|
|
|
<para>
|
|
El valor especial &null; representa una variable sin valor. &null; es el
|
|
único valor posible del tipo <type>null</type>.
|
|
</para>
|
|
|
|
<para>
|
|
Una variable es considerada <type>null</type> si:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>
|
|
se le ha asignado la constante &null;.
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
no se le ha asignado un valor todavía.
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
se ha destruido con <function>unset</function>.
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<sect2 xml:id="language.types.null.syntax">
|
|
<title>Sintaxis</title>
|
|
|
|
<para>
|
|
No hay más que un valor de tipo <type>null</type>, y es la
|
|
constante &null; insensible a mayúsculas/minúsculas.
|
|
</para>
|
|
<informalexample>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$var = NULL;
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</informalexample>
|
|
<para>
|
|
Véase también las funciones <function>is_null</function> y
|
|
<function>unset</function>.
|
|
</para>
|
|
</sect2>
|
|
<sect2 xml:id="language.types.null.casting">
|
|
<title>La conversión a &null;</title>
|
|
|
|
<para>
|
|
Convertir una variable a <type>null</type> usando <literal>(unset) $var</literal>
|
|
<emphasis>no</emphasis> eliminará la variable ni destruirá su valor.
|
|
Sólo retornará un valor &null;.
|
|
</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
|
|
-->
|