I have a string with an image link.
$image_link_raw = 'http://website.com/files/2012/10/image001.png';
Now I wanted to remove http://website.com
and just get /files/2012/10/image001.png
like:
$image_link_raw = '/files/2012/10/image001.png';
Is there a way to do that in PHP?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With