note 6733 modified in ucwords by ronabop

From: Date: Fri, 11 Aug 2000 18:40:42 +0000
Subject: note 6733 modified in ucwords by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1407@lists.php.net to get a copy of this message
Mildly annoying, only spaces are considered whitespace by this function. So words right after linebreaks do not get capitalized. An explode/implode can help here. $temp = explode ("\n", $capthis); array_walk (&$temp, ucwords); $capthis = implode ("\n", $temp); http://www.php.net/manual/function.ucwords.php

« previous php.notes (#1407) next »