$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
You could do it with a regular expression callback method like this:
$q = preg_replace_callback('/\-([a-z]+)/g', create_function( '$m', 'return "-" . ucfirst($m[1]);' ),$q)