Sprintf
| Définition : | Crée une chaîne formatée à partir d’un ou plusieurs arguments. |
| Exemple : |
<?php
$str = "Welcom";
$n = 2; $formatted_str = sprintf('%s, to %uth chapter of PHP.',$str, $n); echo $formatted_str; ?>
|
| Résultat : | Welcom to 2th chapter of PHP. |
| 20 fonctions |