La fonction PhP strtolower()
| Description | La fonction PhP strtolower() permet de renvoyer une chaîne en minuscule (ne prend pas en compte les caractères accentués : é, à, î, ...). |
|---|---|
| Publicité | |
| Solution | <? $chaine="Voici La ChaIne que je VEUX mettre en MiNuScUlE."; // Appel de la fonction strtolower() $nouvellechaine=strtolower($chaine); // Affichage des deux chaînes echo "$chaine<br />devient :<br />$nouvellechaine"; /* Voici La ChaIne que je VEUX mettre en MiNuScUlE. devient : voici la chaine que je veux mettre en minuscule. */ ?> |
| Notez la solution |
|
| Questions similaires | La fonction PhP ucfirst() La fonction PhP strtoupper() La fonction PhP ucwords() |
| Mots clés | strtolower, php, fonction, minuscule |