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