string File::skipRoot (
string $path
)
このメソッドは、$path
からルートディレクトリを取り除きます。
string $path
- 処理させるパスを指定します。
絶対パスの場合、このメソッドは処理されたパスを返します。 その他の場合、そのままのパスを返します。
This function can be called statically.
File::skipRoot() の例
<?php
require_once 'File.php';
echo File::skipRoot("/home/foo/bar");
?>
この例は、home/foo/bar
を表示します。