eregi_replace... HELP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pHaZed
Forum Commoner
Posts: 28
Joined: Wed May 01, 2002 2:44 am
Location: Sydney -AU

eregi_replace... HELP

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

why not?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

To PHP, HTML isn't anything different that normal text. Basically, anything you can edit in notepad or vi is text.
Post Reply