|
|
(Next) File::unlock() |
||||
| |
|||||
|
|||||
string File:stripTrailingSeparators (
string $path
,
string $separator =
= DIRECTORY_SEPARATOR
)
このメソッドは、パス名から最後のセパレータ (*nixでは "/" のような) を取り除きます。
string $path - 最後のセパレータを取り除くパス名を指定します。
string $separator - セパレータを定義するオプション文字列を指定します。 このパラメータのデフォルト値は、PHP であらかじめ定義されている DIRECTORY_SEPARATOR 定数の値です。
このメソッドは、 最後のディレクトリセパレータが取り除かれたパス名を返します。
This function can be called statically.
File:stripTrailingSeparators() の例
<?php
require_once "File.php";
echo File::stripTrailingSeparators("/home/foo/lala/");
?>
この例は、/home/foo/lala を表示します。
|
|
(Next) File::unlock() |
||||||||
| |
|||||||||
|
|||||||||