📅  最后修改于: 2022-03-11 14:54:39.206000             🧑  作者: Mango
代码示例2
function getLastWord($string)
{
$string = explode(' ', $string);
$last_word = array_pop($string);
return $last_word;
}