Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toCamelCase($input) : string
- {
- return str_replace(
- ' ',
- '',
- ucwords(
- strtolower(
- preg_replace('/[^a-zA-Z0-9]+/', ' ', $input)
- )
- )
- );
- }
Advertisement
Comments
-
- Well done and not a single liner that no one can understand.
Add Comment
Please, Sign In to add comment
Advertisement