makeRelative.php
Table of Contents
Functions
- makeRelative() : string
- Turns an absolute path into a path relative to another absolute path.
Functions
makeRelative()
Turns an absolute path into a path relative to another absolute path.
makeRelative(string $path, string $basePath) : string
Parameters
- $path : string
-
The absolute path to convert.
- $basePath : string
-
The absolute path to which the conversion should be relative.
Tags
Return values
string —The relative path.