How to remove underline from textarea values?

I get values ​​from textare as show in double qoutes

"Hi_i_am_working_on_javascript_comment_box"

how to remove underline value from it ...

+5
source share
3 answers

Use str_replace()for example. Like this ( see Proof here ):

$input = 'Hi_i_am_working_on_javascript_comment_box';

$output = str_replace('_', ' ', $input);
+12
source

use str_replacewith php:

$string=str_replace("_"," ",$string);
+5
source

in sql

replace('Hi_i_am_working_on_javascript_comment_box', '_', ' ')
+2
source

All Articles