$q = durham-region; $q = ucfirst($q); $q = Durham-region;
How would I capitalize the letter after the dash (Durham-Region)? Would I have to spli
Thanks to the delimiter parameter of ucwords, since PHP 5.4.32 and 5.5.16, it is as simple as this:
delimiter
$string = ucwords($string, "-");