Hey guys. One problem to solve here 🙂
I have a string with an image directory.
The string output this:
../images/model/modelname
but when I insert it into the database it should be:
images/model/modelname
so as you see I need to remove first three characters...
I used strtr, ereg_replace and told them to remove ../ but nothing happened.
Any help will be appreciated 😃