Home » Php » php – how to remove underscore from values of textarea?

php – how to remove underscore from values of textarea?

Posted by: admin July 12, 2020 Leave a comment

Questions:

i am getting values from textare as show in double qoutes

"Hi_i_am_working_on_javascript_comment_box"

how to remove underscore value from it…

How to&Answers:

Use str_replace() for example. Like that (see proof here):

$input = 'Hi_i_am_working_on_javascript_comment_box';

$output = str_replace('_', ' ', $input);

Answer:

use str_replace with php:

$string=str_replace("_"," ",$string);

Answer:

in sql

replace('Hi_i_am_working_on_javascript_comment_box', '_', ' ')