note 6732 deleted from ucwords by ronabop
| From: | ronabop@php.net | Date: | Fri, 11 Aug 2000 18:39:52 +0000 |
| Subject: | note 6732 deleted from ucwords by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1406@lists.php.net to get a copy of this message | ||
<p>Mildly annoying, only spaces are considered whitespace by this function. So words right
after linebrakes do not get capitalized. An explode/implode can help here.</p>
<p>Something like:<br>
<pre>
$temp = explode ("n", $capthis);
array_walk ($temp, ucwords);
$capthis = implode ("n", $temp);
</pre></p>