我在我的网站上有一个标题部分,它输出新闻文章的标题和第一句。下面我想输出文章的其余部分减去第一段。输出php中的第一个句号后的所有内容
像这样的事情将是巨大的:
// Full Article
$NewsArticle = "This is the article. I hope you like it.";
// Find the First Full stop
// Save everything after the first full stop to $NewsArticle
$NewsArticle == "I hope you like it";
任何帮助将是巨大的!
感谢
亚历
你甚至尝试什么吗? – Scimonster
http://www.php.net/manual/en/function.substr.php加上http://www.php.net/manual/en/function.strrpos.php或爆炸,如果你不需要最后一满停止 – mplungjan
是的,我一直在尝试strpos,但没有运气。以为我会问一些有用的建议。 – Alex