erica           Sun Mar  2 15:52:22 2003 EDT

  Modified files:              
    /phpdoc/en/language constants.xml 
  Log:
  Fixed minor grammatical errors and grammar bug #22506
  
Index: phpdoc/en/language/constants.xml
diff -u phpdoc/en/language/constants.xml:1.29 phpdoc/en/language/constants.xml:1.30
--- phpdoc/en/language/constants.xml:1.29       Sat Feb 22 01:53:31 2003
+++ phpdoc/en/language/constants.xml    Sun Mar  2 15:52:22 2003
@@ -1,21 +1,21 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.29 $ -->
+<!-- $Revision: 1.30 $ -->
  <chapter id="language.constants">
   <title>Constants</title>
 
   <simpara>
-   A constant is a identifier (name) for a simple value. As the name
+   A constant is an identifier (name) for a simple value. As the name
    suggests, that value cannot change during the execution of the
-   script (except the <link linkend="language.constants.predefined">
-   magic constants</link> which aren't actually constants).
-   A constant is case-sensitive by default. By convention constant 
+   script (except for <link linkend="language.constants.predefined">
+   magic constants</link>, which aren't actually constants).
+   A constant is case-sensitive by default. By convention, constant 
    identifiers are always uppercase.
   </simpara>
   <para>
    The name of a constant follows the same rules as any label in PHP. A 
    valid constant name starts with a letter or underscore, followed
    by any number of letters, numbers, or underscores. As a regular
-   expression, it would be expressed thus:
+   expression, it would be expressed thusly:
    <literal>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*</literal>
 
    <!-- TODO: Example of valid & invalid constant names -->
@@ -51,8 +51,8 @@
     You can get the value of a constant by simply specifying its name.
     Unlike with variables, you should <emphasis>not</emphasis> prepend
     a constant with a <literal>$</literal>.
-    You can also use the function <function>constant</function>, to
-    read a constant's value, if you are to obtain the constant's name
+    You can also use the function <function>constant</function> to
+    read a constant's value if you wish to obtain the constant's name
     dynamically. 
     Use <function>get_defined_constants</function> to get a list of 
     all defined constants.
@@ -136,14 +136,14 @@
    
    <para>
     There are four magical constants that change depending on
-    where they're used.  For example, the value of
+    where they are used.  For example, the value of
     <constant>__LINE__</constant> depends on the line that it's
-    used on in your script.  These special constants are 
+    used on in your script. These special constants are 
     case-insensitive and are as follows:
    </para>
    <para>
     <table>
-     <title>A few "magical" PHP "constants"</title>
+     <title>A few "magical" PHP constants</title>
      <tgroup cols="2">
       <thead>
        <row>
@@ -167,13 +167,13 @@
        <row>
         <entry><constant>__FUNCTION__</constant></entry>
         <entry>
-         The function name.  This was added in PHP 4.3.0
+         The function name. (This was added in PHP 4.3.0.)
         </entry>
        </row>
        <row>
         <entry><constant>__CLASS__</constant></entry>
         <entry>
-         The class name.  This was added in PHP 4.3.0
+         The class name. (This was added in PHP 4.3.0.)
         </entry>
        </row>
       </tbody>
@@ -182,8 +182,8 @@
    </para>
 
    <simpara>
-    A list of predefined constants is available in the section <link
-    linkend="reserved.constants">Reserved predefined constants</link>.
+    A list of predefined constants is available in the <link
+    linkend="reserved.constants">reserved predefined constants</link> section.
    </simpara>
 
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to