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