samedi 21 février 2015

PHP: How to capitalize the nth letter of a string?

Everyone knows how to capitalize the first letter of a string (ucfirst) but what about the 2nd or Nth letter? I'm looking for a simple way to capitalize the character at position N of an ascii string.


Aucun commentaire:

Enregistrer un commentaire