note 6733 deleted from function.ucwords by felipe

From: Date: Sat, 29 Dec 2007 18:26:28 +0000
Subject: note 6733 deleted from function.ucwords by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134154@lists.php.net to get a copy of this message
Note Submitter: bobo at ii dot nl Reason: 2 ---- 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);

« previous php.notes (#134154) next »