mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
1ad390c81a
commit
80d5ab0279
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue