PHP删除“ - ”请帮忙 [英] PHP remove "-" Please help
本文介绍了PHP删除“ - ”请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我可以帮助我从此代码返回的目录中删除 - 。我在how-it-works文件夹中有index.php,但希望它返回它是如何工作而不是如何工作是否有办法删除 -
谢谢
我使用的代码
echo''< title>''。basename(realpath(''./'') )。''< / title>'';
?>
解决方案
字符串替换,
http://php.net/manual/en/function.str -replace.php [ ^
Hi could you help me please to remove "-" form the directory this code returns. I have index.php in "how-it-works" folder but want it to return "how it works" instead of "how-it-works" is there a ways to remove "-"
Thanks
the code i use
echo ''<title>''.basename(realpath(''./'')).''</title>'';
?>
解决方案
String replace,
http://php.net/manual/en/function.str-replace.php[^]
这篇关于PHP删除“ - ”请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文