eregi_replace word select only
Posted: Tue Aug 24, 2010 9:47 am
Hi everyone, I'm trying to convert certain words to links using "eregi_replace". the only problem i seem to be having is when this words fall into a group of words for example;
i want to convert the artist name "eva" to a link, the code converts words like wheneva, how do i make it only convert exact match only..
here is a sample of my code
i want to convert the artist name "eva" to a link, the code converts words like wheneva, how do i make it only convert exact match only..
here is a sample of my code
Code: Select all
$text = eregi_replace('eva', '<a href="Artist/view.php?_id=eva">Eva</a>', $text);