单词转换驼峰命名方法
/*** * 转换驼峰命名 * @uncamelized_words 需要转换的单词 @separator 单词中的分隔符 ***/ function camelize($uncamelized_words,$separator='_'){ $uncamelized_words = $separator. str_replace($separator, " ", strtolower($uncamelized_words)); return ltrim(str_replace(" ", "", ucwords($uncamelized_words)), $separator ); }