iloveitaly on 08/24/10
Last Edited at 08/24/10 11:27pm
function ucname($string) { $string = ucwords(strtolower($string)); foreach(array('-', '\'') as $delimiter) { if (strpos($string, $delimiter) !== false) { $string = implode($delimiter, array_map('ucfirst', explode($delimiter, $string))); } } return $string;}
URL: http://php.net/manual/en/function.ucwords.php
Report this snippet Tweet
Comment:
You need to login to post a comment.