Von Underscore zu CamelCase
function convertToCamelCase($text){
$result = '';
$nextUp = false;
for($i = 0; $i < strlen($text); $i++){
$char = substr($text, $i, 1);
if($char == '_'){
$nextUp = true;
}
else if ($nextUp){
$result .= strtoupper($char);
$nextUp = false;
}
else{
$result .= strtolower($char);
}
}
return $result;
}