note 86732 modified in function.ucwords by danbrown
| From: | danbrown@php.net | Date: | Sat, 01 Nov 2008 14:23:22 +0000 |
| Subject: | note 86732 modified in function.ucwords by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146009@lists.php.net to get a copy of this message | ||
ucwords for UTF-8 strings:
<?php
function mb_ucwords($str) {
$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
return ($str);
}
?>
--was--
ucwords for UTF-8 strings:
function mb_ucwords($str) {
$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
return ($str);
}
http://php.net/manual/en/function.ucwords.php