Add prefix to a file, add prefix to an image:
function prefixToImg($prefix,$img_src) { $img = explode(‘/’,$img_src);
$img[(count($img)-1)] = $prefix.$img[(count($img)-1)];
return implode(‘/’,$img); }
acha he
Comments are closed.