La fonction htmlentities() en Php
| Description | La fonction Php htmlentities() permet de convertir tous les caractères spéciaux d'une chaîne de caractères en HTML. |
|---|---|
| Solution | <? $chaine="Voici l'un des exemple testé par CQF."; echo htmlentities($chaine); // Retourne : Voici l'un des exemple testé par CQF. // Le "é" a été transformé en "é" ?> |
| Notez la solution |
|
| Questions similaires | |
| Mots clés | fonction, php, htmlentities, html, caracteres speciaux, chaine |
| Publicité |