Hi
I want to replace image file name in a string to
tag <img> in HTML
such as I have a string named $imgtag
$imgtag = "this is img01.jpg";
I want to replace $imgtag to
$imgtag = "this is <img src="img01.jpg">"
I know I can use ereg_replace but I must
specific text "img01.jpg" to convert
if I found any image file , can I replace it
in <img> tag ?
help me please.
Thank you.
Nont