cvs: phpdoc /en/functions filesystem.xml

From: Date: Thu, 27 Sep 2001 09:28:06 +0000
Subject: cvs: phpdoc /en/functions filesystem.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337757@lists.php.net to get a copy of this message
philip Thu Sep 27 05:28:06 2001 EDT Modified files: /phpdoc/en/functions filesystem.xml Log: Putting new basename() parameter info in typical <note> format. Changing basename() example from .php3 to .php as well. Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.81 phpdoc/en/functions/filesystem.xml:1.82 --- phpdoc/en/functions/filesystem.xml:1.81 Fri Sep 21 18:47:38 2001 +++ phpdoc/en/functions/filesystem.xml Thu Sep 27 05:28:05 2001 @@ -1,5 +1,5 @@ <?xml encoding="iso-8859-1"?> -<!-- $Revision: 1.81 $ --> +<!-- $Revision: 1.82 $ --> <reference id="ref.filesystem"> <title>Filesystem functions</title> <titleabbrev>Filesystem</titleabbrev> @@ -24,8 +24,7 @@ Given a string containing a path to a file, this function will return the base name of the file. If the filename ends in <parameter>suffix</parameter> this will - also be cut off (the <parameter>suffix</parameter> parameter was added - in PHP 4.0.7). + also be cut off. </para> <para> On Windows, both slash (<literal>/</literal>) and backslash @@ -37,12 +36,17 @@ <example> <title><function>basename</function> example</title> <programlisting role="php"> -$path = "/home/httpd/html/index.php3"; -$file = basename ($path); // $file is set to "index.php3" -$file = basename ($path,".php3"); // $file is set to "index" +$path = "/home/httpd/html/index.php"; +$file = basename ($path); // $file is set to "index.php" +$file = basename ($path,".php"); // $file is set to "index" </programlisting> </example> </para> + <note> + <para> + The <parameter>suffix</parameter> parameter was added in PHP 4.0.7. + </para> + </note> <para> See also: <function>dirname</function> </para>

« previous php.doc (#969337757) next »