note 128335 added to function.ucwords
| From: | mjamesd at gmail dot com | Date: | Fri, 24 Mar 2023 17:31:33 +0000 |
| Subject: | note 128335 added to function.ucwords | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220292@lists.php.net to get a copy of this message | ||
Here's my camel case one-liner:
<?php
echo str_replace(' ', '', lcfirst(ucwords(strtolower($str))));
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 205.175.106.45)
----
Manual Page -- https://php.net/manual/en/function.ucwords.php
Edit -- https://main.php.net/note/edit/128335
Del: integrated -- https://main.php.net/note/delete/128335/integrated
Del: useless -- https://main.php.net/note/delete/128335/useless
Del: bad code -- https://main.php.net/note/delete/128335/bad+code
Del: spam -- https://main.php.net/note/delete/128335/spam
Del: non-english -- https://main.php.net/note/delete/128335/non-english
Del: in docs -- https://main.php.net/note/delete/128335/in+docs
Del: other reasons-- https://main.php.net/note/delete/128335
Reject -- https://main.php.net/note/reject/128335
Search -- https://main.php.net/manage/user-notes.php