cvs: phpdoc /en/reference/dir/functions getcwd.xml

From: Date: Thu, 18 Dec 2003 08:40:09 +0000
Subject: cvs: phpdoc /en/reference/dir/functions getcwd.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357540@lists.php.net to get a copy of this message
didou Thu Dec 18 03:40:09 2003 EDT Modified files: /phpdoc/en/reference/dir/functions getcwd.xml Log: addeed an example Index: phpdoc/en/reference/dir/functions/getcwd.xml diff -u phpdoc/en/reference/dir/functions/getcwd.xml:1.3 phpdoc/en/reference/dir/functions/getcwd.xml:1.4 --- phpdoc/en/reference/dir/functions/getcwd.xml:1.3 Tue Jun 18 05:52:07 2002 +++ phpdoc/en/reference/dir/functions/getcwd.xml Thu Dec 18 03:40:08 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/dir.xml, last change in rev 1.7 --> <refentry id="function.getcwd"> <refnamediv> @@ -16,6 +16,35 @@ Returns the current working directory. </para> <para> + <example> + <title><function>getcwd</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// current directory +echo getcwd() . "\n"; + +chdir('cvs'); + +// current directory +echo getcwd() . "\n"; + +?> +]]> + </programlisting> + <para> + This example will output: + </para> + <screen> +<![CDATA[ +/home/didou +/home/didou/cvs +]]> + </screen> + </example> + </para> + <para> See also <function>chdir</function>. </para> </refsect1>

« previous php.doc (#969357540) next »