strtolower(preg_replace('/((?<=[a-z])(?=[A-Z]))/', '_', 'AbcDef')) 转载于:https://www.cnblogs.com/pcx105/p/7724386.html