mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Some more error corrections in examples and explanations
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@75938 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0d51567bb7
commit
c36fe2ae4b
1 changed files with 11 additions and 14 deletions
|
@ -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 @@ if (!odbc_execute ($stmt, &$sqldata)) {
|
|||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<simpara>p
|
||||
"null" (since PHP 4.0.8)
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
@ -1324,8 +1324,7 @@ something
|
|||
function foo() {
|
||||
static $a;
|
||||
$a++;
|
||||
echo "$a\n";
|
||||
|
||||
echo "$a\n";
|
||||
unset($a);
|
||||
}
|
||||
|
||||
|
@ -1347,7 +1346,9 @@ foo();
|
|||
</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 @@ foo();
|
|||
</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 @@ array(3) {
|
|||
|
||||
*/
|
||||
|
||||
$b = 3.1; $c = TRUE;
|
||||
$b = 3.1;
|
||||
$c = TRUE;
|
||||
var_dump($b,$c);
|
||||
|
||||
/* output:
|
||||
|
@ -1432,7 +1429,7 @@ float(3.1)
|
|||
bool(true)
|
||||
|
||||
*/
|
||||
?>;
|
||||
?>
|
||||
</pre>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -1445,7 +1442,7 @@ bool(true)
|
|||
<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 @@ echo $v;
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id='function.is-callable'>
|
||||
<refentry id="function.is-callable">
|
||||
<refnamediv>
|
||||
<refname>is_callable</refname>
|
||||
<refpurpose>
|
||||
|
|
Loading…
Reference in a new issue