core/Utils.php
public static function attrToCamel($name)
    {
        $name = preg_replace_callback('@-[a-z]@', function ($m) {
            return substr(strtoupper($m[0]), 1);
        }, trim($name, '-'));
        $name = lcfirst($name);
        return $name;
    }
public static function attrToCamel($name)
    {
        $name = preg_replace_callback('@-[a-z]@', function ($m) {
            return substr(strtoupper($m[0]), 1);
        }, trim($name, '-'));
        $name = lcfirst($name);
        return $name;
    }
属性 转 驼峰
@param $name
@return null|string|string[]