Note: array_rand uses the libc generator, which is slower and less-random than Mersenne Twister.
<?php
$a = ['http://php.net/', 'http://google.com/', 'http://bbc.co.uk/'];
$website = $a[mt_rand(0, count($a) - 1)];
?>
This is a better alternative.