File::isAbsolute()

File::isAbsolute() -- checks wether the given path is an absolute path

Referentiesamenvatting

require_once 'File.php';

bool File::isAbsolute (string $path)

Beschrijving

This method checks whether the supplied path is an absolute path (eg. "/foo/bar" or "C:\foo\bar").

Parameter

string $path - the path the will be checked.

Return waarde

This method returns TRUE if the path is absolute, FALSE otherwise.

Note

Deze functie kan statisch worden aangeroepen.

Voorbeeld