Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在以下变量中用下划线“_”替换空格
$e_type = 'Hello World TEST';
谁能帮帮我
你想要str_replace:
str_replace
$e_type = str_replace(' ', '_', $e_type);
检查这个。你有一些很好的例子......