goba Sat Mar 30 12:13:55 2002 EDT
Modified files:
/phpdoc/en/functions var.xml
Log:
Some more error corrections in examples and explanations
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.102 phpdoc/en/functions/var.xml:1.103
--- phpdoc/en/functions/var.xml:1.102 Sat Mar 30 11:48:55 2002
+++ phpdoc/en/functions/var.xml Sat Mar 30 12:13:54 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.102 $ -->
+<!-- $Revision: 1.103 $ -->
<reference id="ref.variables">
<title>Variable Functions</title>
<titleabbrev>Variables</titleabbrev>
@@ -1053,7 +1053,7 @@
</simpara>
</listitem>
<listitem>
- <simpara>
+ <simpara>p
"null" (since PHP 4.0.8)
</simpara>
</listitem>
@@ -1324,8 +1324,7 @@
function foo() {
static $a;
$a++;
- echo "$a\n";
-
+ echo "$a\n";
unset($a);
}
@@ -1347,7 +1346,9 @@
</informalexample>
</para>
<para>
- If you would like to <function>unset</function> a global variable inside of a
function, you can use the <parameter>$GLOBALS</parameter> array to do so:
+ If you would like to <function>unset</function> a global variable
+ inside of a function, you can use
+ the <varname>$GLOBALS</varname> array to do so:
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -1361,11 +1362,6 @@
</programlisting>
</informalexample>
</para>
- <note>
- <para>
- <function>unset</function> is a language construct.
- </para>
- </note>
<para>
See also <function>isset</function> and
<function>empty</function>.
@@ -1424,7 +1420,8 @@
*/
-$b = 3.1; $c = TRUE;
+$b = 3.1;
+$c = TRUE;
var_dump($b,$c);
/* output:
@@ -1432,7 +1429,7 @@
bool(true)
*/
-?>;
+?>
</pre>
]]>
</programlisting>
@@ -1445,7 +1442,7 @@
<refentry id="function.var-export">
<refnamediv>
<refname>var_export</refname>
- <refpurpose>Outputs or returns a string representation of avariable</refpurpose>
+ <refpurpose>Outputs or returns a string representation of a variable</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@@ -1505,7 +1502,7 @@
</refsect1>
</refentry>
- <refentry id='function.is-callable'>
+ <refentry id="function.is-callable">
<refnamediv>
<refname>is_callable</refname>
<refpurpose>