php str_replace pattern

Posted by user331071 on Stack Overflow See other posts from Stack Overflow or by user331071
Published on 2010-05-06T18:53:20Z Indexed on 2010/05/06 18:58 UTC
Read the original article Hit count: 215

Filed under:
|

Hello ,

I have a php application that saves the pictures on the server and also stores the picture names in the database . The issue that I have is that the picture names include the path/folder where it was saved from (e.g 1220368812/chpk2198933_large-2.jpg) so I need a str_replace pattern to remove "1220368812/" and have the picture name correct stored in the db . Also I would appreciate if you will send me a good link that explains how exactly the str_replace patterns work or at least how the pattern that you use work .

© Stack Overflow or respective owner

Related posts about php

Related posts about str-replace