php - delete only first slashes from url/string
I want to delete the first two slashes of my string.
After that I want to include the
http:// new. But that isn't the problem.
str_replace replace all slashes...
I've different strings. Examples:
/media/images/CmsPageModuleDataItem/62/6260.0_gefro-suppennudeln.jpg //cdn.abc.de/images/100/3/7/1/5/0/8/371508F1.jpg http://s7.abc.com/is/image/LandsEnd/461469_FG16_LF_616
I need a correct
http:// in front of these urls.
Maybe someone know a smart solution.