note 117403 added to function.ucwords

From: Date: Thu, 04 Jun 2015 16:26:46 +0000
Subject: note 117403 added to function.ucwords
Groups: php.notes 
Request: Send a blank email to php-notes+get-202745@lists.php.net to get a copy of this message
After a while of trial and error it appears that ucwords does not convert a string that is already in all caps to the ucwords format as inidcated in the beginning of the function manual. for example, $a = my text $b = ucwords($a) echo $b = My Text. However: $a = MY TEXT; $b = ucwords($a) echo $b = MY TEXT if the string is already uppercase, the function will not use strtolower then ucwords which is interpreted up above. I just wanted people to know that. I could not figure out what was going on. ---- Server IP: 72.52.91.14 Probable Submitter: 199.168.151.121 (proxied: 150.142.240.241) ---- Manual Page -- http://php.net/manual/en/function.ucwords.php Edit -- https://master.php.net/note/edit/117403 Del: integrated -- https://master.php.net/note/delete/117403/integrated Del: useless -- https://master.php.net/note/delete/117403/useless Del: bad code -- https://master.php.net/note/delete/117403/bad+code Del: spam -- https://master.php.net/note/delete/117403/spam Del: non-english -- https://master.php.net/note/delete/117403/non-english Del: in docs -- https://master.php.net/note/delete/117403/in+docs Del: other reasons-- https://master.php.net/note/delete/117403 Reject -- https://master.php.net/note/reject/117403 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202745) next »