Home >Backend Development >PHP Tutorial >一个简单的php截取字符窜有关问题

一个简单的php截取字符窜有关问题

WBOY
WBOYOriginal
2016-06-13 10:45:59923browse

一个简单的php截取字符窜问题
string="{quote}{title}匿名的原帖:{/title}{content}什么时候开盘呢?{/content}{/quote}预计10月份开盘,目前火爆认筹中,交1000抵5000,开盘再打98折!"

根据字符窜最后的 "}" 截取 "预计10月份开盘,目前火爆认筹中,交1000抵5000,开盘再打98折!"

大侠们帮帮忙

------解决方案--------------------
echo substr(strrchr($string,'}'),1);
------解决方案--------------------
strrchr($string,'}')

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