Position actuelle: Accueil> Catégories de fonctions> ucfirst

ucfirst

Définissez le premier caractère de la chaîne sur majuscules
Nom:ucfirst
Catégorie:Chaîne
Langage de programmation:php
Description en une ligne:Convertit le premier caractère de la chaîne en majuscule.

Exemple

Convertissez le premier caractère de "Hello" en majuscules:

 <span class="token php language-php"><span class="token delimiter important"><? Php</span>
<span class="token keyword">echo</span> <span class="token function">ucfirst</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello World!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Essayez-le vous-même

Fonctions similaires
Articles populaires