Jump to content

Replacing a String


foochuck

Recommended Posts

I'm pulling the follwing line from an RSS Feed using PHP:

 

<enclosure type="image/jpeg" length="60370" url="http://foochuck.com/pixelpost/images/20091218125438_img_0026.jpg" />

 

I'd like to replace in url the string "images/" and replace it with "thumbnails/thumb_".

 

Do I use str_replace for this? If so, could someone show me a sample?

 

Thanks

 

-foochuck

 

Link to comment
https://forums.phpfreaks.com/topic/185639-replacing-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.