PHP/pastebin

From S23Wiki
Jump to: navigation, search

<HighlightSyntax> <?php

$decimal=rand(0,15);

switch ($decimal) { case 10: $digit="A"; break; case 11: $digit="B"; break; case 12: $digit="C"; break; case 13: $digit="D"; break; case 14: $digit="E"; break; case 15: $digit="F"; break; default: $digit=$decimal; }

print $digit;

?> </HighlightSyntax>