I need a PHP code to search and replace text entered in a textarea.
The database contains two columns : 'Search' and 'Replace'.
So the user enters text in a textarea, the code searches each word in the database and replaces it if it exists in the search column of the database, otherwise leaves it as it is.
The result is displayed in a div and should be case-sensitive according to input. All formating like tabs and spaces should be retained.
any help please
If you know of any drupal or wordpress plugin that can do this, let me know

Read more here: PHP Search and replace from Database


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: