Cannot redeclare classLoader() (previously declared in 错误解决方案

这里是我遇到的问题指向这个文件 autoload.php 

<?php

function classLoader($class)
{
$path = str_replace('\', DIRECTORY_SEPARATOR, $class);
$file = __DIR__ . '/src/' . $path . '.php';

if (file_exists($file)) {
include_once $file;
}
}
spl_autoload_register('classLoader');

include_once __DIR__ . '/src/Qiniu/functions.php';   

  Cannot redeclare classLoader()  翻译过来  ‘无法重新声明classLoader()’ 说明这个方法重名了  

所以 把  classLoader 改成其他名字就可  例如  classLoader_two 

原文地址:https://www.cnblogs.com/super-ldc/p/15506056.html