Index: apache-getenv.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/apache/functions/apache-getenv.xml,v
retrieving revision 1.2
diff -u -r1.2 apache-getenv.xml
--- apache-getenv.xml	17 Jan 2004 11:43:05 -0000	1.2
+++ apache-getenv.xml	21 Aug 2004 11:58:31 -0000
@@ -1,11 +1,9 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
   <refentry id="function.apache-getenv">
    <refnamediv>
     <refname>apache_getenv</refname>
-    <refpurpose>
-     Get an Apache subprocess_env variable
-    </refpurpose>
+    <refpurpose>Get an Apache subprocess_env variable</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -14,7 +12,29 @@
      <methodparam><type>string</type><parameter>variable</parameter></methodparam>
      <methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter></methodparam>
     </methodsynopsis>
-     &warn.undocumented.func;
+    <para>
+     <function>apache_getenv</function> returns the value of the Apache
+     environment variable specified by
+     <parameter>variable</parameter>, or &false; on failure.
+    </para>
+    <example>
+     <title><function>apache_getenv</function> example</title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+$ret = apache_getenv("SERVER_ADDR");
+echo $ret;
+?>
+]]>
+     </programlisting>
+     <para>
+      The example above shows how to retrieve the value of the Apache
+      environment variable "SERVER_ADDR".
+     </para>
+    </example>
+    <para>
+     See also <function>apache_setenv</function>.
+    </para>
    </refsect1>
   </refentry>
 
