3
1
Back

= preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo.

New Pull Request