Conversion hexadécimale avec la fonction ‘base_convert()’

Author:


Download

<html>
<head>
<title> Fonction Mathématique</title>
</head>
<body>
<?php

$hex = 'a1'; // Nombre hexadécimal (base 16)

// convertir de base 16 à base 10
$decimal = base_convert($hex, 16, 10);

// Afficher le décimal
echo $decimal;
?>

</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


one + 9 =