mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Correctly case getBasename.
Fixes bug #52449 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305901 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c621e33dd3
commit
f98db0ac3f
1 changed files with 3 additions and 3 deletions
|
@ -52,13 +52,13 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$info = new SplFileInfo('file.txt');
|
||||
var_dump($info->getbaseName());
|
||||
var_dump($info->getBasename());
|
||||
|
||||
$info = new SplFileInfo('/path/to/file.txt');
|
||||
var_dump($info->getbaseName());
|
||||
var_dump($info->getBasename());
|
||||
|
||||
$info = new SplFileInfo('/path/to/file.txt');
|
||||
var_dump($info->getbaseName('.txt'));
|
||||
var_dump($info->getBasename('.txt'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue