function camelCase($value) { $value = ucwords(str_replace(array('-', '_'), ' ', $value)); return str_replace(' ', '', $value); }