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>