在字符的第二个实例之后获取字符串


Get string after second instance of a character

我有字符串'sn 123456 dead blah de blah de blah',我希望能够在空格的第二个实例之后挑出字符串的其余部分。 使用 PHP 执行此操作的最佳方法是什么?

您可以使用 PHP: 像下面这样爆炸

 $str = 'sn 123456 dead';
 $strarr = explode(" ", $str, 3);
 echo $strarr[2];