note 127312 added to function.ucwords
| From: | igor dot matos dot oliveira dot xyz at gmail dot com | Date: | Wed, 20 Jul 2022 15:11:34 +0000 |
| Subject: | note 127312 added to function.ucwords | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219042@lists.php.net to get a copy of this message | ||
<?php
$exceptions = array(
"de",
"do",
"da",
"dos",
"das",
);
$title = explode(" ", strtolower($nomeinst));
foreach ($title as $key => $word) {
if (!(in_array($word, $exceptions))) {
$title[$key] = ucwords($word);
}
}
echo implode(" ", $title);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.133 (proxied: 2804:d59:adad:400:85d4:47d0:1b31:bbc)
----
Manual Page -- https://php.net/manual/en/function.ucwords.php
Edit -- https://main.php.net/note/edit/127312
Del: integrated -- https://main.php.net/note/delete/127312/integrated
Del: useless -- https://main.php.net/note/delete/127312/useless
Del: bad code -- https://main.php.net/note/delete/127312/bad+code
Del: spam -- https://main.php.net/note/delete/127312/spam
Del: non-english -- https://main.php.net/note/delete/127312/non-english
Del: in docs -- https://main.php.net/note/delete/127312/in+docs
Del: other reasons-- https://main.php.net/note/delete/127312
Reject -- https://main.php.net/note/reject/127312
Search -- https://main.php.net/manage/user-notes.php