$dir = '/web99/web/direcotry/filename';
I need to drop ‘/web99/web/’ from the directory on the fly.
I tried:
$trimmed = ltrim($dir, "/web99/web/");
however if a directory started with a w,e,b,9 the first letter of the directory was cut off.
How can I drop only what I want and not every character like that?
$dir = preg_replace('$^/web99/web/$', '', $dir);