Users of our site often print a lot of garbage for information about the name and address. e.g. all CAPS, all lower, etc.
It looks a lot better if we fix them for them, but someone can suggest a good way to do it. A simple approach is only to use each word in its own name, but this does not work when working with some names. Here are some examples ...
and this is what I would like to convert to
I use PHP if this helps.
, , , , , .
O'Connor O'connor. , , - , O'Connor, Oconnor, . - . "bob smith", .
, , , - ALL-CAPS . , , -, , .
. , , ?
, , .
- , , , . , , - , , , , - . , , , .
, , , , . , "" . "Developer Art", , , .
$name = ucwords(strtolower($name)); PHP, , .
$name = ucwords(strtolower($name));
Source: https://habr.com/ru/post/1721089/More articles:In HTTP, what is REST? - http.htaccess 301 redirect to the main page if the page is not found - apacheNeed advice on creating a new ASP.NET application - jqueryBDD Testing Structures - RSpec and Cucumber - objective-cProblem understanding XOR linked list - linked-listะัะพัััะฐะฝััะฒะฐ ะธะผะตะฝ REST + json + JAXB + - jsonReplace any text from any HTML page before displaying it - javascriptWill IntelliTrace (tm) (historical debugging) be available for unmanaged C ++ in future versions of Visual Studio? - c ++How to reuse named areas? - ruby-on-railsMSBUILD configuration: copy output to staging area - msbuildAll Articles