Home >Backend Development >PHP Tutorial >怎么从右边向左截取字符串

怎么从右边向左截取字符串

WBOY
WBOYOriginal
2016-06-13 11:39:531223browse

如何从右边向左截取字符串

本帖最后由 goolean 于 2013-09-30 21:31:47 编辑 字符串为:"。。还有很多。。001_002_003",想要从右边第4个(_003)开始,得到向左的所有字符串“。。还有很多。。001_002"

应当如何实现 ,字符串的长度不确定,所以只能从右边开始载
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn