[PHP] Modifying a string

2003-03-06 Thread Luis Lebron
I need to modify a string that contains image links like img src=http://www.somedomain/directory/graphics/filename.jpg; to image links like img src=graphics/filename.jpg How can I do this? Luis

Re: [PHP] Modifying a string

2003-03-06 Thread Duncan
---BeginMessage--- Hi, if it's always the same src=http://www.somedomain/directory/;, then the easiest might be: $string = str_replace('src=http://www.domedomain/directory/','src=',$string); ... Duncan Luis Lebron wrote: I need to modify a string that contains image links like img

Re: [PHP] Modifying a string

2003-03-06 Thread Liam Gibbs
I need to modify a string that contains image links like img src=http://www.somedomain/directory/graphics/filename.jpg; to image links like img src=graphics/filename.jpg Maybe something like with str_replace()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: