Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 19884 программиста и 1620 роботов. Сейчас ищут 1743 программиста ...

File::skipRoot()

Вернуться к: File

File::skipRoot()

File::skipRoot() – strips the root directory from a given path

Synopsis

require_once 'File.php';

string File::skipRoot ( string $path )

This method strips the root directory from $path.

Parameter

string $path - the path to be processed.

Return value

If the path is absolute, this method returns the processed path, otherwise, it returns the path untouched.

Note

This function can be called statically.

Example

Using File::skipRoot()

<?php
require_once 'File.php';

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

This example prints out home/foo/bar.



Вернуться к: File

© 2025 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware