mercredi 14 janvier 2009

PHP strtolower - Plugin smarty

Ce plugin smarty transformer la chaine de caractère encodé UTF-8 en minuscule


function smarty_modifier_lower_utf8($inputString)
{
$outputString = utf8_decode($inputString);
$outputString = strtolower($outputString);
$outputString = utf8_encode($outputString);
return $outputString;
}

Si vous avez des difficulté ou d'autre question au sujet de smarty, vous pouvez poster vos question sur le Forum Shoops.fr dans la rubrique informatique / smarty

Aucun commentaire: