所以说我会写类似<break>的东西,它将显示出<break>之前的所有内容

$text = "I like apple pies<break>Do you like Apple pies?";


所以它应该只输出

I like apple pies

最佳答案

$text = "I like apple pies<break>Do you like Apple pies?";

list($result) = explode('<break>',$text,2);

09-12 19:00