aidan           Tue Aug 31 20:01:27 2004 EDT

  Modified files:              
    /phpdoc/en/reference/filesystem/functions   pathinfo.xml 
  Log:
  Fixed bug #29924
  
http://cvs.php.net/diff.php/phpdoc/en/reference/filesystem/functions/pathinfo.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/filesystem/functions/pathinfo.xml
diff -u phpdoc/en/reference/filesystem/functions/pathinfo.xml:1.6 
phpdoc/en/reference/filesystem/functions/pathinfo.xml:1.7
--- phpdoc/en/reference/filesystem/functions/pathinfo.xml:1.6   Thu Aug 12 14:11:57 
2004
+++ phpdoc/en/reference/filesystem/functions/pathinfo.xml       Tue Aug 31 20:01:26 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.61 -->
   <refentry id="function.pathinfo">
    <refnamediv>
@@ -23,9 +23,9 @@
     <para>
      You can specify which elements are returned with optional parameter
      <parameter>options</parameter>. It composes from
-     <constant>PHP_PATHINFO_DIRNAME</constant>,
-     <constant>PHP_PATHINFO_BASENAME</constant> and
-     <constant>PHP_PATHINFO_EXTENSION</constant>. It defaults to return all
+     <constant>PATHINFO_DIRNAME</constant>,
+     <constant>PATHINFO_BASENAME</constant> and
+     <constant>PATHINFO_EXTENSION</constant>. It defaults to return all
      elements.
     </para>
     <para>
@@ -34,13 +34,11 @@
       <programlisting role="php">
 <![CDATA[
 <?php
+$path_parts = pathinfo('/www/htdocs/index.html');
 
-$path_parts = pathinfo("/www/htdocs/index.html");
-
-echo $path_parts["dirname"] . "\n";
-echo $path_parts["basename"] . "\n";
-echo $path_parts["extension"] . "\n";
-
+echo $path_parts['dirname'], "\n";
+echo $path_parts['basename'], "\n";
+echo $path_parts['extension'], "\n";
 ?>
 ]]>
       </programlisting>
@@ -65,7 +63,8 @@
     </note>
     <para>
      See also <function>dirname</function>,
-     <function>basename</function>, <function>parse_url</function>
+     <function>basename</function>,
+     <function>parse_url</function>
      and <function>realpath</function>.
     </para>
    </refsect1>

Reply via email to