Is it possible to find and replace one offset in an array?
Basically have array of data. one offset is path to an image.....
I want to remove the existing path up to the image information and delete it....
ex...
http://www.domain.com/store/product.image/1/product.jpg
I want to remove the
http://www.domain.com/store/product.image
so I am just left with
/1/product.jpg
I need to do this to all records in my array....
Thanks...
well, the quick and dirty would be something like...
$array = str_replace('$path_to_remove','', $array);
Figured it out thanks
$img_url = str_replace("http://www.domain.com/site/images.products/", "", $web_pic);
Had my array variable in the wrong place.... duh