previousFile::rewind() (Previous) (Next) File::stripLeadingSeparators()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File::skipRoot()

File::skipRoot() – 与えられたパスからルートディレクトリを取り除く

Synopsis

require_once 'File.php';

string File::skipRoot ( string $path )

Description

このメソッドは、$path からルートディレクトリを取り除きます。

Parameter

string $path - 処理させるパスを指定します。

Return value

絶対パスの場合、このメソッドは処理されたパスを返します。 その他の場合、そのままのパスを返します。

Note

This function can be called statically.

Example

File::skipRoot() の例

<?php
require_once 'File.php';

echo 
File::skipRoot("/home/foo/bar");
?>

この例は、home/foo/bar を表示します。

previousFile::rewind() (Previous) (Next) File::stripLeadingSeparators()next

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.