This commit is contained in:
KONE SOREL 2026-03-31 18:36:01 +00:00
parent 8fa60f1d3e
commit b2c4eb2f77

View File

@ -57,6 +57,24 @@
// $imgData = $_SESSION['photoAssureCrypte'];
$photoAssureCrypte = $_SESSION['photoAssureCrypte'];
function verifierTelephone($numero)
{
// On prend les 3 premiers caractères du numéro
$prefixe = substr($numero, 0, 3);
// Vérification si le préfixe est égal à "250"
if ($prefixe === "250") {
return "0";
} else {
return "1";
}
}
$telephone = $beneficiaire['telephonePortable'];
$format = strlen($telephone) > "4" ? verifierTelephone($numero) : "0";
var_dump($format);
?>
<style>