我有一個字符串象下面這樣:如何獲得價值高達定字符串的一定長度在PHP
例如:
$string = "A great way to start with your theme is to use the XML export file from the demo. Having this starting content makes it easier to see how some features are created. Download the demo content below and import it into your WordPress site to get a replica of the theme demo site.The second step is to navigate to the Tools options and click Import. Then on the bottom of the list.";
現在我需要得到含量高達3行,它應該是一個完整的句子。所以我想知道我該怎麼做。 PHP中有任何功能來做到這一點?
你的意思是第三個字符?所有這些文本都在一行中,我看不到新的換行符\ n。 – 2013-02-20 10:11:45
您的輸入中只有一行?另外,你如何認識一句話 - 如果在一個句子裏面有一個'.'如果是這樣的話:'我今年賺到了$ 1,000,000,000.00!' – 2013-02-20 10:11:47
你的意思是3行意味着3 fullstop? – 2013-02-20 10:13:19