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 d
function camelize($input, $separator = '_') { return lcfirst(str_replace($separator, '', ucwords($input, $separator))); } echo ($this->camelize('someWeir-d-string')); // output: 'someWeirdString';