I'm trying to create a text only page by deleting the html img tags. I'm doing this with php 3.0.7 (strip_tags not available in this version).
I've managed to get the result I want but it doesn't seem efficient to me.
Is it possble to put the four photos in an array and then call the array in the eregi_replace function?
Here is what I have posted:
$img = '<img src="photos1.jpg" hspace="8" alt="" width="205" height="295" align="left">';
$content = eregi_replace($img, "", $content);
$img = '<img src="photo2.jpg" hspace="8" alt="" width="258" height="251" align="right">';
$content = eregi_replace($img, "", $content);
$img = '<img src="photo3.jpg" hspace="8" alt="" width="184" height="317" align="left">';
$content = eregi_replace($img, "", $content);
$img = '<img src="photo4.jpg" hspace="8" alt="" width="204" height="329" align="left">';
$content = eregi_replace($img, "", $content);
Thank you, Shawna