将空间文件名转换为下划线 [英] Convert Space filenames into underscore
本文介绍了将空间文件名转换为下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在linux上运行php。我只是想将空间文件名转换为下划线。例如,当用户上传文件测试PHP时,它将成为Testing_PHP。任何建议。
谢谢。
Hi All,
Im working php on linux. I just want to convert space filenames into underscore.Example, when user upload file Testing PHP it will become Testing_PHP. Any suggesstion.
Thanks.
推荐答案
使用PHPstr_replace
: http://php.net/manual/en/function.str-replace.php [ ^ ]。< br $>
-SA
Use PHPstr_replace
: http://php.net/manual/en/function.str-replace.php[^].
—SA
这篇关于将空间文件名转换为下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文