mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
basename example with and without suffix argument
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336901 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1b60a48bbc
commit
631ffcb398
1 changed files with 10 additions and 8 deletions
|
@ -65,10 +65,11 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
echo "1) ".basename("/etc/sudoers.d", ".d").PHP_EOL;
|
||||
echo "2) ".basename("/etc/passwd").PHP_EOL;
|
||||
echo "3) ".basename("/etc/").PHP_EOL;
|
||||
echo "4) ".basename(".").PHP_EOL;
|
||||
echo "5) ".basename("/");
|
||||
echo "2) ".basename("/etc/sudoers.d").PHP_EOL;
|
||||
echo "3) ".basename("/etc/passwd").PHP_EOL;
|
||||
echo "4) ".basename("/etc/").PHP_EOL;
|
||||
echo "5) ".basename(".").PHP_EOL;
|
||||
echo "6) ".basename("/");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -76,10 +77,11 @@ echo "5) ".basename("/");
|
|||
<screen>
|
||||
<![CDATA[
|
||||
1) sudoers
|
||||
2) passwd
|
||||
3) etc
|
||||
4) .
|
||||
5)
|
||||
2) sudoers.d
|
||||
3) passwd
|
||||
4) etc
|
||||
5) .
|
||||
6)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue