cvs: phpdoc-zh /reference/var/functions unset.xml
| From: | Krazy Nio | Date: | Mon, 16 Jun 2003 13:32:20 +0000 |
| Subject: | cvs: phpdoc-zh /reference/var/functions unset.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1529@lists.php.net to get a copy of this message | ||
nio Mon Jun 16 09:32:20 2003 EDT
Modified files:
/phpdoc-zh/reference/var/functions unset.xml
Log:
EN 1.5
Index: phpdoc-zh/reference/var/functions/unset.xml
diff -u phpdoc-zh/reference/var/functions/unset.xml:1.2
phpdoc-zh/reference/var/functions/unset.xml:1.3
--- phpdoc-zh/reference/var/functions/unset.xml:1.2 Mon Jun 16 07:54:03 2003
+++ phpdoc-zh/reference/var/functions/unset.xml Mon Jun 16 09:32:20 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- $Author: nio $ -->
-<!-- EN-Revision: 1.2 Maintainer: nio Status: ready -->
+<!-- EN-Revision: 1.5 Maintainer: nio Status: ready -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
<refentry id="function.unset">
<refnamediv>
@@ -16,11 +16,6 @@
<methodparam
choice="opt"><type>mixed</type><parameter>var</parameter></methodparam>
<methodparam
choice="opt"><parameter>...</parameter></methodparam>
</methodsynopsis>
- <note>
- <para>
- <function>unset</function> ÊÇÓïÑԽṹµÄÒ»²¿·Ö¡£
- </para>
- </note>
<para>
<function>unset</function> Ïú»ÙÖ¸¶¨µÄ±äÁ¿¡£×¢ÒâÔÚ
PHP 3 ÖУ¬<function>unset</function> ½«·µ»Ø
@@ -34,6 +29,7 @@
<title><function>unset</function> ʾÀý</title>
<programlisting role="php">
<![CDATA[
+<?php
// Ïú»Ùµ¥¸ö±äÁ¿
unset ($foo);
@@ -42,6 +38,7 @@
// Ïú»ÙÒ»¸öÒÔÉϵıäÁ¿
unset ($foo1, $foo2, $foo3);
+?>
]]>
</programlisting>
</example>
@@ -56,6 +53,7 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
function destroy_foo() {
global $foo;
unset($foo);
@@ -64,6 +62,7 @@
$foo = 'bar';
destroy_foo();
echo $foo;
+?>
]]>
</programlisting>
</informalexample>
@@ -83,6 +82,7 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
function foo(&$bar) {
unset($bar);
$bar = "blah";
@@ -93,6 +93,7 @@
foo($bar);
echo "$bar\n";
+?>
]]>
</programlisting>
</informalexample>
@@ -113,6 +114,7 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
function foo() {
static $a;
$a++;
@@ -123,6 +125,7 @@
foo();
foo();
foo();
+?>
]]>
</programlisting>
</informalexample>
@@ -144,16 +147,21 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
function foo() {
unset($GLOBALS['bar']);
}
$bar = "something";
foo();
+?>
]]>
</programlisting>
</informalexample>
</para>
+
+ ¬e.language-construct;
+
<para>
²Î¼û <function>isset</function> ºÍ
<function>empty</function>¡£