Change field names to sentence case in blank template
The UE creation widget takes the names of the database fields and strips them of underscores and replaces with spaces. I've also added a string to remove other parts of the field names within the blank template like so:
<?php echo(str_replace("_"," ",$pkey))); ?>
<?php echo(str_replace("_"," ",str_replace("fld_cu_","",$pkey))); ?>
but I'd also like to make the dynamically generated field titles appear in sentence case (rather than lowercase as I'd named them in the database). How do I make the above do that?