i am trying to replace spaces with underscore '_' in the following variable
$e_type 开发者_Go百科= 'Hello World TEST';
can anyone help me please
You want str_replace
:
$e_type = str_replace(' ', '_', $e_type);
str_replace
Check this. You have some nice examples there...
精彩评论