Jump to content

Changing Dynamically Words in Text


young_coder

Recommended Posts

Dear all,

I need to change dynamically ###KEYWORD### in text with same word or phrase like in echo ($keyword);

Text with ###KEYWORD### is dynamic content. It is displayed RSS feed.

Can it be done..?

Thank you

 

<?php

session_start();

$_SESSION['raw_query'] = $_GET['q'];

$_SESSION['ad_group'] = str_replace("-", " ", $_GET['q']);

 

$keyword = $_SESSION["ad_group"];

echo ($keyword);

?>

 

<p>This is text, and ###KEYWORD### is word I wish to replace with same thing that is in "echo ($keyword);".</p>

Link to comment
https://forums.phpfreaks.com/topic/205448-changing-dynamically-words-in-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.