foochuck Posted December 18, 2009 Share Posted December 18, 2009 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 More sharing options...
trq Posted December 18, 2009 Share Posted December 18, 2009 str_replace("images/", "thumbnails/thumb_", $string); Link to comment https://forums.phpfreaks.com/topic/185639-replacing-a-string/#findComment-980255 Share on other sites More sharing options...
foochuck Posted December 18, 2009 Author Share Posted December 18, 2009 Thanks thorpe! Link to comment https://forums.phpfreaks.com/topic/185639-replacing-a-string/#findComment-980257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.