normalize()
normalize(string $path) : string
Normalizes the given path by resolving relative path segments (like "." and "..") and converting backslashes to slashes. The normalization process removes any redundant separators and ensures that the path is clean and usable.
Parameters
string | $path | The path to normalize. |
Returns
string —The normalized path.