[ create a new paste ] login | about

Link: http://codepad.org/YBq1G5mH    [ raw code | output | fork ]

PHP, pasted on Jul 27:
1
2
3
4
5
6
7
<?php
$nomes= array('Carlos','Paulo','Pedro','John','Schumacher');
array_push($nomes,'Senna');
sort($nomes);
$vencedor=rand(0,count($nomes)-1);
echo strtoupper($nomes[$vencedor]);
?>


Output:
1
SENNA


Create a new paste based on this one


Comments: