2020-04-23 17:29:58 个人常用封装函数
个人常用函数
function convertToUnderline($name) { return str_replace(' ', '_', strtolower(trim(preg_replace('/([A-Z])/', ' $1', $name)))); }
function convertToUnderline($name)
{
return str_replace(' ', '_', strtolower(trim(preg_replace('/([A-Z])/', ' $1', $name))));
}