Proposer une amélioration de commentaire
Le commentaire à poster est au format «docblock» (de phpDoc) qui peut être
enrichi de tags spécifiques pour SPIP.
- Fichier
- ecrire/inc/charsets.php
- Fonction
- spip_strtolower
Code original
/**
* Passe une chaîne utf-8 en minuscules
*
* Version utf-8 de strtolower
*
* @param string $c
* La chaîne à transformer
* @return string
* La chaîne en minuscules
*/
function spip_strtolower($c) {
// Si on n'a pas mb_* ou si ce n'est pas utf-8, utiliser strtolower
if (!init_mb_string() or $GLOBALS['meta']['charset'] != 'utf-8') {
return strtolower($c);
}
return mb_strtolower($c);
}