Convert Dashes to CamelCase in PHP
Posted
by Kirk
on Stack Overflow
See other posts from Stack Overflow
or by Kirk
Published on 2010-05-07T22:15:16Z
Indexed on
2010/05/07
22:18 UTC
Read the original article
Hit count: 256
php
|string-manipulation
Can someone help me complete this PHP function? I want to take a string like this: 'this-is-a-string' and convert it to this: 'thisIsAString':
function dashesToCamelCase($string, $capitalizeFirstCharacter = false) {
// Do stuff
return $string;
}
© Stack Overflow or respective owner