note 69602 added to function.ucfirst

From: Date: Tue, 12 Sep 2006 13:01:20 +0000
Subject: note 69602 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-117061@lists.php.net to get a copy of this message
This is what you would expect php to deliver if there was a built-in function named ucsentence. function ucsentence ($string){ $string = explode ('.', $string); $count = count ($string); for ($i = 0; $i < $count; $i++){ $string[$i] = ucfirst (trim ($string[$i])); if ($i > 0){ $string[$i] = '&nbsp;&nbsp;' . $string[$i]; } } $string = implode ('.', $string); return $string; } ---- Server IP: 64.71.164.2 Probable Submitter: 72.177.33.2 ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- https://master.php.net/note/edit/69602 Del: integrated -- https://master.php.net/note/delete/69602/integrated Del: useless -- https://master.php.net/note/delete/69602/useless Del: bad code -- https://master.php.net/note/delete/69602/bad+code Del: spam -- https://master.php.net/note/delete/69602/spam Del: non-english -- https://master.php.net/note/delete/69602/non-english Del: in docs -- https://master.php.net/note/delete/69602/in+docs Del: other reasons-- https://master.php.net/note/delete/69602 Reject -- https://master.php.net/note/reject/69602 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117061) next »