I have database tables with columns like billingAddress and userName that I would like to display as "Billing Address" and "User Name".
So far, I have the following:
$columnTitleWordArray=preg_split('/[A-Z]/',$column);
$columnTitle=ucwords(implode(" ",$columnTitleWordArray));
It almost works, but it drops the uppercase character that deliminates the string.
For example:
billingAddress becomes Billing Ddress
userName becomes User Ame
I know there is a quick fix, but I can't seem to find it. Any help is appreciated.