php explode容易犯的错误
$pos = strpos($v, 'Controller');
if (is_numeric($pos)) {$kongzhiqifege = explode('Controller', $v);
$kongzhiqi = $kongzhiqifege[0];
if (!empty($kongzhiqi)) {
$kongzhiqi = strtolower($kongzhiqi);
}
}
一定要先判断下是否存在 然后进行分割
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/19034.html