mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fixed bug #29924
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167762 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bd3e5d5564
commit
2a944d0e01
1 changed files with 10 additions and 11 deletions
|
@ -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 @@ html
|
|||
</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>
|
||||
|
|
Loading…
Reference in a new issue