I've got a script that I use to update pages on my website. I've got three variables that apply to my issue.
$keywords Keywords that I designate
$link Link where I want the visitors to go
$text The actual text thats displayed
What I'm wanting to do is somehow parse the text before it is echoed and make a like everytime the keywords are used, then display. Example below.
$keywords = 'chair';
$link = '$text = 'This is sample text about a chair. A chair is';
When $text is echoed, I'm wanting the two instances of chair to be replaced with '<a href="
I'm not wanting anyone to write any code for me, I'm just stumped as to which functions to look at to achieve my goal.
Thanks for your help.
Marion
hallm
$keywords Keywords that I designate
$link Link where I want the visitors to go
$text The actual text thats displayed
What I'm wanting to do is somehow parse the text before it is echoed and make a like everytime the keywords are used, then display. Example below.
$keywords = 'chair';
$link = '$text = 'This is sample text about a chair. A chair is';
When $text is echoed, I'm wanting the two instances of chair to be replaced with '<a href="
I'm not wanting anyone to write any code for me, I'm just stumped as to which functions to look at to achieve my goal.
Thanks for your help.
Marion
hallm