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: 229

Filed under:
|

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

Related posts about php

Related posts about string-manipulation