PHP删除特定字符串之前的所有字符 [英] PHP remove all characters before specific string
本文介绍了PHP删除特定字符串之前的所有字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在字符串中出现此字符之前,我需要从任何字符串中删除所有字符:
I need to remove all characters from any string before the occurrence of this inside the string:
"www/audio"
不确定如何做到这一点.
Not sure how I can do this.
推荐答案
您可以使用 strstr 来做到这一点.
You can use strstr to do this.
echo strstr($str, 'www/audio');
这篇关于PHP删除特定字符串之前的所有字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文