Have example use lib.inc.php instead of index.html to demonstrate multiple . behaviour

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299134 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2010-05-08 02:26:36 +00:00
parent 1ad390c81a
commit 80d5ab0279

View file

@ -94,7 +94,7 @@
<programlisting role="php">
<![CDATA[
<?php
$path_parts = pathinfo('/www/htdocs/index.html');
$path_parts = pathinfo('/www/htdocs/inc/lib.inc.php');
echo $path_parts['dirname'], "\n";
echo $path_parts['basename'], "\n";
@ -106,10 +106,10 @@ echo $path_parts['filename'], "\n"; // since PHP 5.2.0
&example.outputs;
<screen>
<![CDATA[
/www/htdocs
index.html
html
index
/www/htdocs/inc
lib.inc.php
php
lib.inc
]]>
</screen>
</example>