在 PHP 中使用 startsWith() 函数 2 年 ago 清, 扬 1 minute function startsWith($text, $prefix) { return strpos($text, $prefix) === 0; }