some example formatting, PHP4 correction

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147842 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2004-01-05 01:57:24 +00:00
parent fba01f489b
commit 704684ec9e

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.71 $ -->
<!-- $Revision: 1.72 $ -->
<chapter id="language.variables">
<title>Variables</title>
@ -453,7 +453,7 @@ function test_global()
print $HTTP_POST_VARS['name'];
// Superglobals are available in any scope and do
// not require 'global'. Superglobals are available
// not require 'global'. Superglobals are available
// as of PHP 4.1.0
print $_POST['name'];
}
@ -584,7 +584,7 @@ function foo(){
<sect2 id="language.variables.scope.references">
<title>References with global and static variables</title>
<simpara>
The Zend Engine 1, driving <literal>PHP4</literal>, implements the
The Zend Engine 1, driving <literal>PHP 4</literal>, implements the
<link linkend="language.variables.scope.static">static</link> and
<link linkend="language.variables.scope.global">global</link> modifier
for variables in terms of <link linkend="language.references">
@ -836,12 +836,12 @@ echo "$a $hello";
import_request_variables('p', 'p_');
print $p_username;
// Available since PHP 3. As of PHP 5.0.0, these long predefined
// Available since PHP 3. As of PHP 5.0.0, these long predefined
// variables can be disabled with the register_long_arrays directive.
print $HTTP_POST_VARS['username'];
// Available if the PHP directive register_globals = on. As of
// Available if the PHP directive register_globals = on. As of
// PHP 4.2.0 the default value of register_globals = off.
// Using/relying on this method is not preferred.