开发者

replace spaces with _ in php

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜