Page 1 of 1

eregi_replace... HELP

Posted: Sun May 19, 2002 9:21 am
by pHaZed
Hi,
I read the documentation on the ereg'i'() functions
From wat i understand it can only replace text in strings.
I was wondering if i could use it to replace some HTML code that im to lazy to do myself?
<font color="#FF0000">
replaceable?

Posted: Sun May 19, 2002 9:29 am
by volka
why not?

Posted: Sun May 19, 2002 9:38 am
by jason
To PHP, HTML isn't anything different that normal text. Basically, anything you can edit in notepad or vi is text.