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
---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
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:
3 matches
Mail list logo