function sentenceToCamelCase($sentence)
{
$sentence = str_replace('a', '', $sentence);
$w = explode(" ", $sentence);
$ret='';
foreach($w as $i)
{
//echo $i;
$ret.=uppercaseWord($i);
}
return $ret;
}
function uppercaseWord($word)
{
return strtoupper(substr($word, 0,1)).substr($word, 1);
}
// shorter one
ReplyDeletefunction camelcase($str) { return str_replace(' ', '', ucwords($str)); }
wow,keren
ReplyDeletehehehe