I have this code..
$homepage1 = 'datastring=/mac_project/portfolio/kitchen/images/03.jpg';
$trimmed = ltrim($homepage1, 'datastring=/mac_project');
echo $trimmed;
I get the output as folio/kitchen/images/03.jpg
. It's missing the /port
from the /portfolio
directory.
Full output should've been /portfolio/kitchen/images/03.jpg