note 47391 added to function.ucwords

From: Date: Mon, 15 Nov 2004 04:08:39 +0000
Subject: note 47391 added to function.ucwords
Groups: php.notes 
Request: Send a blank email to php-notes+get-80530@lists.php.net to get a copy of this message
If you want to format a string like... <?php $string = "computer programming/repair"; print ucwords($string); ?> Output: Computer Programming/repair Notice the word after the slash (Programming/repair) isn't capitalized. To fix this, use CSS... <?php $string = "computer programming/repair"; print '<p style="text-transform:capitalize">'; print ucwords($string); print '<p>'; ?> ---- Manual Page -- http://www.php.net/manual/en/function.ucwords.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47391 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47391&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47391&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80530) next »