Forum » » Road map développement » » [Résolu] - utf8 et substring ... probleme dans metalang ... ?
Posté : 31 mars 2021 à 20:40
<?php
$utf8string = "cakeæøå";
echo substr($utf8string,0,5);
// output cake#
echo mb_substr($utf8string,0,5,'UTF-8');
//output cakeæ
?>
Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=1523&forum=21