Created
January 10, 2020 02:33
-
-
Save pigfly88/0b56eb688e3fb238481301fbca1b2546 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 下划线转驼峰 出自Doctrine Inflector | |
function camelize($word) { | |
return lcfirst(str_replace([' ', '_', '-'], '', ucwords($word, ' _-'))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment