mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Example on Windows (doc bug #53401)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308194 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cc173e00af
commit
50e15d60d3
1 changed files with 3 additions and 11 deletions
|
@ -88,20 +88,12 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo "1) ".dirname("/etc/passwd").PHP_EOL;
|
||||
echo "2) ".dirname("/etc/").PHP_EOL;
|
||||
echo "3) ".dirname(".");
|
||||
echo "1) " . dirname("/etc/passwd") . PHP_EOL; // 1) /etc
|
||||
echo "2) " . dirname("/etc/") . PHP_EOL; // 2) / (or \ on Windows)
|
||||
echo "3) " . dirname("."); // 3) .
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
1) /etc
|
||||
2) /
|
||||
3) .
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue