🌈 搜索
📅  最后修改于: 2022-03-11 14:54:46.235000             🧑  作者: Mango
function getFirstWord($string) { $arr = explode(' ', trim($string)); return isset($arr[0]) ? $arr[0] : $string; }