[英]replace spaces with _ in php
i am trying to replace spaces with underscore '_' in the following variable 我试图用以下变量中的下划线'_'替换空格
$e_type = 'Hello World TEST';
can anyone help me please 请有人帮帮我
你想要str_replace
:
$e_type = str_replace(' ', '_', $e_type);
Check this . 检查一下 。 You have some nice examples there...
你有一些很好的例子......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.