File::isAbsolute() -- checks wether the given path is an absolute path
Описание
This method checks whether the supplied path is an absolute path (eg.
"/foo/bar" or "C:\foo\bar").
Параметр
string $path - the path the will be checked.
Возвращаемое значение
This method returns TRUE if the path is absolute, FALSE otherwise.
Заметка
Эта функция может быть вызвана статически.
Пример
Пример 39-1. Using File::isAbsolute() <?php
require_once 'File.php';
if (File::isAbsolute("/usr/local") {
echo "Path is absolute";
} else {
echo "Path isn't absolute";
}
?> |
This short example will output the string 'Path is absolute'.
|
HIVE: All information for read only. Please respect copyright! |
|