View Single Post
Old 11-19-2003, 01:51 PM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
string replacement....

"lets say i have a string like this"

i want replace "have" and "string" with something like

"<a href="foo">have</a>"
"<a href="bar">string</a>"

i want to do this on a medium scale site without slowing everything down too much.

i was thinking of reading the string into an array and then compairing each element against another array that held the replacements. however, i think that will slow everything down.

anyone have any ideas of how to implement somethign like this without too much overhead?
__________________


Urban Clothing
Admin is offline   Reply With Quote