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

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

WBOY
Release: 2016-06-13 13:15:24
Original
994 people have browsed it

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

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

大侠们帮帮忙

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template