Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Convertir un nombre d’une base vers une autre avec ‘base_convert( )’


{filelink=13286}

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

<?php

print base_convert('10', 10, 10) . "<br />";
print base_convert('20', 10, 2) . "<br />";
print base_convert('50', 10, 8) . "<br />";
print base_convert('32', 10, 16) . "<br />";

print base_convert('135624', 16, 32) . "<br />";
print base_convert('765984', 16, 36) . "<br />";

print base_convert('ABCDEF', 8, 8) . "<br />";
print base_convert('01235',  8, 2) . "<br />";
?>

</body>
</html>

No comments yet.

Leave a Comment