It works both ways, but I prefer str_replace. Now, is there anyway to replace just the first occurance? Like I have multiple directories (ie /dir1/dir2/dir3/img.ext) and I don't want all '/' replaced, just the first one.
Thank you for your help.
Christina