- ucwords: documentation ( source)
- str_replace: documentation ( source)
- lcfirst: documentation ( source)
<?php
function camelCase($value){
$studly = ucwords(str_replace(array('-', '_'), '', $value));
return lcfirst($studly);
}
echo camelCase('question-is-too-simple');