i have a little problem and my english and php is not the best but i try to explain my question
i get the following code from my database:
Code: Select all
$path = picfolder/picname/picname-1.jpgi need a variable that replace the
Code: Select all
$path = picfolder/picname/picname-1.jpgCode: Select all
$thumbpath = picfolder/picname/thumb_picname-1.jpgis it possible to search for the 2nd slash and replace it with /thumb-
from
picfolder/picname/thumb_picname-1.jpg
to
picfolder/picname/thumb_picname-1.jpg
i thank you for your help!
best regards