Quantcast
Channel: Armand Niculescu, Author at Media Division
Viewing all articles
Browse latest Browse all 16

Correct Name Capitalization in PHP

$
0
0

One annoying scenario is when you let users enter their names and then you need to output their names nicely, for example in a newsletter. Some users simply enter their names in upper/lowercase, but obviously when you address them you can't do the same. On the other hand PHP's ucfirst() and ucwords() functions are too naive for proper capitalization.

The post Correct Name Capitalization in PHP appeared first on Media Division.


Viewing all articles
Browse latest Browse all 16

Trending Articles