Is there a builtin function in php to intelligently join path strings?
Like path_join("abc/de/","/fg/x.php")
which should return "abc/de/fg/x.php"
, but path_join("abc/de","fg/x.php")
should have the same result
If not, is there a class availabel. Could also be valuable for splitting paths or removing parts of them. If you have written something maybe you can share your code here?
It is ok to always use "/", I am coding for linux only.
In python there is os.path.join which is great.