du manuel de php ...
<?php
$utf8string = "cakeæøå";
echo substr($utf8string,0,5);
// output cake#
echo mb_substr($utf8string,0,5,'UTF-8');
//output cakeæ
?>
L'eau goutte à goutte finit toujours par percer la pierre...
Message édité par : jpb / 31-03-2021 20:41